# Template file for 'schilytools' pkgname=schilytools version=2023.09.28 revision=2 makedepends="acl-devel attr-devel e2fsprogs-devel libcap-progs m4" depends="sccs sdd sfind smake star ved" short_desc="Schily's portable tools" maintainer="Leah Neukirchen " license="CDDL-1.0" homepage="https://codeberg.org/schilytools/schilytools" distfiles="https://codeberg.org/schilytools/schilytools/archive/${version//./-}.tar.gz" checksum=564ea2365876a53eba02f184c565016399aee188c26d862589906cf3f92198e6 nocross=yes # configure + re-builds with itself do_build() { make ${makejobs} CC="$CC" COPTX="$CFLAGS" LDOPTX="$LDFLAGS" INS_BASE=/usr make ${makejobs} -C ved 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 } do_install() { make install -C libsiconv/tables DESTDIR="$DESTDIR" INS_BASE=/usr vlicense CDDL.Schily.txt } 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 } } ved_package() { short_desc+=" - ved" pkg_install() { make install -C ved DESTDIR="$PKGDESTDIR" INS_BASE=/usr vlicense CDDL.Schily.txt } } cdrtools_package() { depends="schilytools libcap-progs" short_desc+=" - cdrtools" conf_files="/etc/default/rscsi /etc/default/cdrecord" pkg_install() { vsed -i 's|INSDIR=.*|INSDIR=bin|' rscsi/Makefile for d in btcflash cdda2wav cdrecord mkisofs mkisofs/diag readcd rscsi \ scgcheck scgskeleton; do make install -C "$d" DESTDIR="$PKGDESTDIR" INS_BASE=/usr \ CC="$CC" COPTX="$CFLAGS" LDOPTX="$LDFLAGS" LDPATH= RUNPATH= done rm -rf "${PKGDESTDIR}"/usr/lib/profiled vmkdir usr/lib/modules-load.d echo sg > "${PKGDESTDIR}"/usr/lib/modules-load.d/cdrtools.conf vlicense CDDL.Schily.txt } }