aboutsummaryrefslogtreecommitdiffstats
path: root/main/cdrkit/APKBUILD
blob: e762e7f044087fea2ddb31d9fc5d4c4b7c307e8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cdrkit
pkgver=1.1.11
pkgrel=2
pkgdesc="Suite of programs for CD/DVD recording, ISO image creation, and audio CD extraction"
url="http://cdrkit.org/"
arch="all"
license="GPL2"
depends="file bzip2"
makedepends="cmake libcap-dev bzip2-dev zlib-dev !libiconv-dev"
subpackages="$pkgname-doc"
source="http://dev.alpinelinux.org/archive/cdrkit/$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
}

package() {
	cd "$_builddir"
	make PREFIX="$pkgdir/usr" install || return 1
	cd "$pkgdir/usr/bin"
	ln -s wodim cdrecord || return 1
	ln -s readom readcd || return 1
	ln -s genisoimage mkisofs || return 1
	ln -s genisoimage mkhybrid || return 1
	ln -s icedax cdda2wav || return 1
	cd "$pkgdir/usr/share/man/man1"
	ln -s wodim.1 cdrecord.1 || return 1
	ln -s readom.1 readcd.1 || return 1
	ln -s genisoimage.1 mkisofs.1 || return 1
	ln -s genisoimage.1 mkhybrid.1 || return 1
	ln -s icedax.1 cdda2wav.1 || return 1
}

md5sums="efe08e2f3ca478486037b053acd512e9  cdrkit-1.1.11.tar.gz"
sha256sums="d1c030756ecc182defee9fe885638c1785d35a2c2a297b4604c0e0dcc78e47da  cdrkit-1.1.11.tar.gz"
sha512sums="e5afcd2cb68d39aeff680a0d5b0a7877f94cf6de111b3cb7388261c665fbd3209ce98a20a01911875af7d6b832a156801b1fa46a4481f7c8ba60b22eac0a5b05  cdrkit-1.1.11.tar.gz"