aa4e646b18
The order of object files and libraries is important. Create a Makefile that puts the $(LIBS) after the *.o files.
28 lines
821 B
Bash
28 lines
821 B
Bash
# Template file for 'xcruiser'
|
|
pkgname=xcruiser
|
|
version=0.30
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
makedepends="libXaw-devel"
|
|
short_desc="Filesystem visualization utility"
|
|
maintainer="beefcurtains <beefcurtains@voidlinux.eu>"
|
|
license="GPL-2"
|
|
homepage="http://${pkgname}.sourceforge.net/"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
|
|
checksum=917b68dc06389bfcdde742f0798f61cdeaea2ae3c6567960c33f7634d4861ce5
|
|
LIBS="-lXaw -lXmu -lXt -lX11 -lm"
|
|
|
|
pre_build() {
|
|
local sources
|
|
sources=(*.c)
|
|
echo "LIBS=${LIBS}" >Makefile
|
|
echo "${pkgname}: ${sources[@]/%c/o}" >>Makefile
|
|
echo ' $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)' >>Makefile
|
|
}
|
|
|
|
do_install() {
|
|
vbin ${pkgname}
|
|
vinstall XCruiser.ad 644 /usr/share/X11/app-defaults XCruiser
|
|
mv ${pkgname}.{man,1}
|
|
vman ${pkgname}.1
|
|
}
|