29 lines
969 B
Bash
29 lines
969 B
Bash
# Template file for 'cdrtools'
|
|
nocross=yes
|
|
|
|
pkgname=cdrtools
|
|
version=3.01
|
|
revision=5
|
|
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 ${DESTDIR}/usr/share/man/man5
|
|
vmkdir usr/lib/modules-load.d
|
|
echo sg > ${DESTDIR}/usr/lib/modules-load.d/cdrtools.conf
|
|
}
|