From 115509704e5b0310c65676c333968b090e13665e Mon Sep 17 00:00:00 2001 From: ngn Date: Mon, 19 Aug 2024 03:16:12 +0300 Subject: [PATCH] fix: cdrtools build issues --- src/cdrtools/pkg.sh | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/src/cdrtools/pkg.sh b/src/cdrtools/pkg.sh index f54df01..015222a 100644 --- a/src/cdrtools/pkg.sh +++ b/src/cdrtools/pkg.sh @@ -9,18 +9,29 @@ PACKAGE() { tar xf "${NAME}-${VERSION}.tar.bz2" cd "${NAME}-${VERSION%a*}" - #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 - #rm -rfv cdda2wav # this is broken + sed -i 's|/opt/schily|/usr|g' DEFAULTS/Defaults.linux + sed -i 's|DEFINSGRP=.*|DEFINSGRP=root|' DEFAULTS/Defaults.linux + sed -i 's|INSDIR=\s*sbin|INSDIR=bin|' rscsi/Makefile + rm -rfv cdda2wav # this is broken export GMAKE_NOWARN=true - make INS_BASE=/usr DEFINSUSR=root DEFINSGRP=root - make DESTDIR="${ROOTDIR}" INS_BASE=/usr MANSUFF_LIB=3cdr DEFINSUSR=root DEFINSGRP=root install + export CFLAGS="${CFLAGS} -std=gnu89 -fno-strict-aliasing" + 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}" - install -v -m644 README.* READMEs/* ABOUT doc/*.ps \ - "${ROOTDIR}/usr/share/doc/cdrtools-${VERSION}" + rm "${ROOTDIR}/usr/lib/"*.a + rm -r "${ROOTDIR}/usr/lib/profiled" + 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*}" }