fix: cdrtools build issues
This commit is contained in:
parent
20ba6f2b52
commit
115509704e
@ -9,18 +9,29 @@ PACKAGE() {
|
|||||||
tar xf "${NAME}-${VERSION}.tar.bz2"
|
tar xf "${NAME}-${VERSION}.tar.bz2"
|
||||||
cd "${NAME}-${VERSION%a*}"
|
cd "${NAME}-${VERSION%a*}"
|
||||||
|
|
||||||
#sed -i 's|/opt/schily|/usr|g' DEFAULTS/Defaults.linux
|
sed -i 's|/opt/schily|/usr|g' DEFAULTS/Defaults.linux
|
||||||
#sed -i 's|DEFINSGRP=.*|DEFINSGRP=root|' DEFAULTS/Defaults.linux
|
sed -i 's|DEFINSGRP=.*|DEFINSGRP=root|' DEFAULTS/Defaults.linux
|
||||||
#sed -i 's|INSDIR=.*|INSDIR=bin|' rscsi/Makefile
|
sed -i 's|INSDIR=\s*sbin|INSDIR=bin|' rscsi/Makefile
|
||||||
#rm -rfv cdda2wav # this is broken
|
rm -rfv cdda2wav # this is broken
|
||||||
|
|
||||||
export GMAKE_NOWARN=true
|
export GMAKE_NOWARN=true
|
||||||
make INS_BASE=/usr DEFINSUSR=root DEFINSGRP=root
|
export CFLAGS="${CFLAGS} -std=gnu89 -fno-strict-aliasing"
|
||||||
make DESTDIR="${ROOTDIR}" INS_BASE=/usr MANSUFF_LIB=3cdr DEFINSUSR=root DEFINSGRP=root install
|
make INS_BASE=/usr INS_RBASE=/ LDOPTX="${LDFLAGS}"
|
||||||
|
make INS_BASE=/usr INS_RBASE=/ DESTDIR="${ROOTDIR}" install
|
||||||
|
|
||||||
install -v -m755 -d "${ROOTDIR}/usr/share/doc/cdrtools-${VERSION}"
|
rm "${ROOTDIR}/usr/lib/"*.a
|
||||||
install -v -m644 README.* READMEs/* ABOUT doc/*.ps \
|
rm -r "${ROOTDIR}/usr/lib/profiled"
|
||||||
"${ROOTDIR}/usr/share/doc/cdrtools-${VERSION}"
|
rm -r "${ROOTDIR}/usr/include"
|
||||||
|
rm -r "${ROOTDIR}/usr/share/man/man3"
|
||||||
|
|
||||||
|
echo sg | install -vDm644 /dev/stdin "${ROOTDIR}/usr/lib/modules-load.d/cdrecord.conf"
|
||||||
|
|
||||||
|
chmod a+rx "${ROOTDIR}/usr/bin/"*
|
||||||
|
|
||||||
|
ln -s /usr/bin/cdrecord "${ROOTDIR}/usr/bin/wodim"
|
||||||
|
ln -s /usr/bin/readcd "${ROOTDIR}/usr/bin/readom"
|
||||||
|
ln -s /usr/bin/mkisofs "${ROOTDIR}/usr/bin/genisoimage"
|
||||||
|
ln -s /usr/bin/cdda2wav "${ROOTDIR}/usr/bin/icedax"
|
||||||
|
|
||||||
cd .. && rm -r "${NAME}-${VERSION%a*}"
|
cd .. && rm -r "${NAME}-${VERSION%a*}"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user