void-packages/srcpkgs/schilytools/template
2018-01-12 23:39:26 +01:00

73 lines
2.2 KiB
Bash

# Template file for 'schilytools'
pkgname=schilytools
version=2018.01.10
revision=4
short_desc="Schily's portable tools"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="CDDL-1.0"
makedepends="acl-devel attr-devel e2fsprogs-devel"
depends="sccs sdd sfind smake star"
homepage="https://sourceforge.net/projects/schilytools/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/schily-${version//./-}.tar.bz2"
wrksrc="schily-${version//./-}"
checksum=345c2165b931bd3c9ba205bd4755af21dce2f9684d567aafe3e22e76177daa6d
nocross=yes # configure + re-builds with itself
build_style=meta
do_build() {
make ${makejobs} CC="$CC" COPTX="$CFLAGS" LDOPTX="$LDFLAGS" INS_BASE=/usr
make -C sccs clean
make -C sccs CC="$CC" COPTX="$CFLAGS" LDOPTX="$LDFLAGS" INS_BASE=/usr/libexec/sccs
}
sccs_package() {
short_desc+=" - SCCS"
pkg_install() {
make install -C sccs DESTDIR="$PKGDESTDIR" INS_BASE=/usr/libexec/sccs
vmkdir usr/bin
vmkdir usr/share
rm -f ${PKGDESTDIR}/usr/libexec/sccs/share/man/man?/[!s]*
mv ${PKGDESTDIR}/usr/libexec/sccs/share/man ${PKGDESTDIR}/usr/share
rm -rf ${PKGDESTDIR}/usr/libexec/sccs/bin
ln -sfr ${PKGDESTDIR}/usr/libexec/sccs/ccs/bin/sccs ${PKGDESTDIR}/usr/bin/sccs
vlicense CDDL.Schily.txt
}
}
sdd_package() {
short_desc+=" - sdd"
pkg_install() {
make install -C sdd DESTDIR="$PKGDESTDIR" INS_BASE=/usr
vlicense CDDL.Schily.txt
}
}
sfind_package() {
short_desc+=" - sfind"
pkg_install() {
make install -C sfind DESTDIR="$PKGDESTDIR" INS_BASE=/usr
vlicense CDDL.Schily.txt
}
}
smake_package() {
short_desc+=" - smake"
pkg_install() {
make install -C smake DESTDIR="$PKGDESTDIR" INS_BASE=/usr
vlicense CDDL.Schily.txt
}
}
star_package() {
short_desc+=" - star"
conf_files="/etc/default/star"
alternatives="
pax:pax:/usr/bin/spax
pax:pax.1:/usr/share/man/man1/spax.1
"
pkg_install() {
make install -C star DESTDIR="$PKGDESTDIR" INS_BASE=/usr SYMLINKS='suntar scpio spax'
rm -f ${PKGDESTDIR}/usr/share/man/man1/gnutar.1
rm -f ${PKGDESTDIR}/usr/share/man/man1/ustar.1
rm -f ${PKGDESTDIR}/usr/share/man/man1/gnutar.1
rm -f ${PKGDESTDIR}/usr/share/man/man1/*[!1]
rm -f ${PKGDESTDIR}/usr/share/man/man5/*[!5]
rm -rf ${PKGDESTDIR}/usr/share/doc/
vlicense CDDL.Schily.txt
}
}