From ccc722b7ed330198d82a3cf28ead76d6d107a70a Mon Sep 17 00:00:00 2001 From: davidovski Date: Mon, 6 Jun 2022 21:25:48 +0000 Subject: added java --- repo/cdrkit/cdrkit.xibuild | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) (limited to 'repo/cdrkit/cdrkit.xibuild') diff --git a/repo/cdrkit/cdrkit.xibuild b/repo/cdrkit/cdrkit.xibuild index ac430d8..a9add1e 100644 --- a/repo/cdrkit/cdrkit.xibuild +++ b/repo/cdrkit/cdrkit.xibuild @@ -3,25 +3,33 @@ NAME="cdrkit" DESC="Suite of programs for CD/DVD recording, ISO image creation, and audio CD extraction" -MAKEDEPS="make " -DEPS="bzip2 file libcap musl zlib " +MAKEDEPS=" cmake libcap bzip2 zlib" PKG_VER=1.1.11 SOURCE="https://dev.alpinelinux.org/archive/cdrkit/cdrkit-$PKG_VER.tar.gz" -ADDITIONAL="gcc10.patch " -prepare () { - sed -i include/xconfig.h.in -e "s/#define HAVE_RCMD 1/#undef HAVE_RCMD/g" +ADDITIONAL=" +gcc10.patch +" + +prepare() { + # disable rcmd, it is security risk and not implemented in musl + sed -i include/xconfig.h.in -e "s/#define HAVE_RCMD 1/#undef HAVE_RCMD/g" apply_patches } -build () { - export CFLAGS="$CFLAGS -D__THROW=''" - make +build() { + export CFLAGS="$CFLAGS -D__THROW=''" + cmake -B build \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib \ + -DBUILD_SHARED_LIBS=True \ + -DBUILD_STATIC_LIBS=OFF + cmake --build build } -package () { - make PREFIX="$PKG_DEST/usr" install +package() { + DESTDIR="$PKG_DEST" cmake --install build cd "$PKG_DEST/usr/bin" ln -s wodim cdrecord ln -s readom readcd @@ -35,3 +43,4 @@ package () { ln -s genisoimage.1 mkhybrid.1 ln -s icedax.1 cdda2wav.1 } + -- cgit v1.2.1