aboutsummaryrefslogtreecommitdiffstats
path: root/main/cdrkit
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-12-16 11:15:34 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-12-16 11:15:34 +0000
commit9f9341b2d17540dff13c5fdcdb62af2af696964a (patch)
tree67a677fda4ee77eeedf99d11f7eadb8290e11024 /main/cdrkit
parente20960ae0e56272bff1ec1ad64d5e5614b394953 (diff)
downloadaports-9f9341b2d17540dff13c5fdcdb62af2af696964a.tar.bz2
aports-9f9341b2d17540dff13c5fdcdb62af2af696964a.tar.xz
main/cdrkit: fix musl build
Diffstat (limited to 'main/cdrkit')
-rw-r--r--main/cdrkit/APKBUILD11
1 files changed, 10 insertions, 1 deletions
diff --git a/main/cdrkit/APKBUILD b/main/cdrkit/APKBUILD
index dbc01e599c..145949a2a0 100644
--- a/main/cdrkit/APKBUILD
+++ b/main/cdrkit/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cdrkit
pkgver=1.1.11
-pkgrel=1
+pkgrel=2
pkgdesc="Suite of programs for CD/DVD recording, ISO image creation, and audio CD extraction"
url="http://cdrkit.org/"
arch="all"
@@ -12,8 +12,17 @@ subpackages="$pkgname-doc"
source="http://$pkgname.org/releases/$pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ cd "$_builddir"
+ # 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"
+}
+
build() {
cd "$_builddir"
+ case "$CLIBC" in
+ musl) export CFLAGS="$CFLAGS -D__THROW=''" ;;
+ esac
make || return 1
}