void-packages/srcpkgs/xcruiser/template

29 lines
833 B
Bash

# Template file for 'xcruiser'
pkgname=xcruiser
version=0.30
revision=2
build_style=gnu-makefile
makedepends="libXaw-devel"
short_desc="Filesystem visualization utility"
maintainer="beefcurtains <beefcurtains@voidlinux.org>"
license="GPL-2.0-or-later"
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
}