void-packages/srcpkgs/cdrtools/template
2016-05-26 20:04:45 -04:00

28 lines
939 B
Bash

# Template file for 'cdrtools'
nocross=yes
pkgname=cdrtools
version=3.01
revision=4
makedepends="acl-devel"
conf_files="/etc/default/rscsi /etc/default/cdrecord"
short_desc="Highly portable CD/DVD/BluRay command line recording software"
homepage="http://cdrecord.org/"
license="CDDL-1.0"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
checksum=ed282eb6276c4154ce6a0b5dee0bdb81940d0cbbfc7d03f769c4735ef5f5860f
do_build() {
sed -i 's|INSDIR=.*|INSDIR=bin|' rscsi/Makefile
make CC="$CC" COPTX="$CFLAGS" LDOPTX="$LDFLAGS" RUNPATH= LDPATH= NOWARN=1
}
do_install() {
make 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
vmkdir usr/lib/modules-load.d
echo sg > ${DESTDIR}/usr/lib/modules-load.d/cdrtools.conf
}