void-packages/srcpkgs/cdrtools/template

33 lines
1.2 KiB
Bash

# Template file for 'cdrtools'
pkgname=cdrtools
version=3.02a09
revision=1
wrksrc="${pkgname}-${version%a*}"
nocross=yes
hostmakedepends="smake"
makedepends="acl-devel libcap-devel"
conf_files="/etc/default/rscsi /etc/default/cdrecord"
short_desc="Highly portable CD/DVD/BluRay command line recording software"
homepage="http://cdrtools.sourceforge.net/private/cdrecord.html"
license="CDDL-1.0"
maintainer="Juan RP <xtraeme@voidlinux.org>"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
checksum=aa28438f458ef3f314b79f2029db27679dae1d5ffe1569b6de57742511915e81
do_build() {
sed -i 's|/opt/schily|/usr|g' DEFAULTS/Defaults.linux
sed -i 's|DEFINSGRP=.*|DEFINSGRP=root|' DEFAULTS/Defaults.linux
sed -i 's|INSDIR=.*|INSDIR=bin|' rscsi/Makefile
smake CC="$CC" COPTX="$CFLAGS" LDOPTX="$LDFLAGS" RUNPATH= LDPATH= NOWARN=1
}
do_install() {
smake INS_BASE=/usr MANDIR=/man DESTDIR=${DESTDIR} install
# Remove useless stuff
rm -rf ${DESTDIR}/usr/include
rm -rf ${DESTDIR}/usr/lib/lib* ${DESTDIR}/usr/lib/profiled
rm -rf ${DESTDIR}/usr/share/man/man3 ${DESTDIR}/usr/share/man/man5
vmkdir usr/lib/modules-load.d
echo sg > ${DESTDIR}/usr/lib/modules-load.d/cdrtools.conf
}