aboutsummaryrefslogtreecommitdiffstats
path: root/testing/cdw/APKBUILD
blob: f26e0043bc239a94d833f6c794122b533072776f (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
49
50
51
52
53
54
# Contributor: ScrumpyJack <scrumpyjack@me.com>
# Maintainer:
pkgname=cdw
pkgver=0.8.0
pkgrel=0
pkgdesc="cdw is a front-end for cd recoding tools"
url="http://cdw.sf.net"
arch="all"
license="GPL2"
depends="cdrkit"
depends_dev="ncurses-dev libcdio-dev libburn-dev bison gettext-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz
	main.c.patch
	cdw_fs.c.patch
	cdw_colors.c.patch"

_builddir="${srcdir}/${pkgname}-${pkgver}"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
        export LIBS="-liconv -lintl" && ./configure --prefix=/usr
	make
}

package() {
	cd "$_builddir"
	chmod +x ${srcdir}/${pkgname}-${pkgver}/install-sh
        make DESTDIR="$pkgdir" install || return 1
}

md5sums="60a8d094343b50b436a013737261e92c  cdw-0.8.0.tar.gz
1a35f4cfe4ebf18bb9df4553c0da877c  main.c.patch
36c9275ca278920db0a42029a94307cc  cdw_fs.c.patch
919951dbb5ffa814b56b2f98529cc180  cdw_colors.c.patch"
sha256sums="8f5bd7ed41bc07a84c5aa693bed3c38420e60ba6a3b5ae6ff8e41d78a4665fd2  cdw-0.8.0.tar.gz
f20a3a158c9feb9503b412a7ebf924c158f688a2f117bffbe1af41555e2dea80  main.c.patch
f233fa0622d7f348a5d96529657525bc4b943f520d317812f4bf0635ee9d40a2  cdw_fs.c.patch
34baba8bac6649cce0f5d69978366df8a7dd92ff6cb61941468eae9e6de539c4  cdw_colors.c.patch"
sha512sums="67fd9e397800187baafff425fd77ae9ba679a7b396736004f305accea3c3c9ca215d70dac0410fd8ef9ed016f7ce11c3859c84bfa04e3234cee84201605175d0  cdw-0.8.0.tar.gz
1c3bd9ec2faad0833ba0042a5a760f0b691f6db9cac3badf7059ed85d791d5b843f03c5c798c33e3a15c0398feee95cd861d01b4a883954af4b558871978c670  main.c.patch
292a822db0e3c5aec8f61af4463a868183d8a9faf05b2e2f023ad95bd918bc8a5b24eb6b990d0313a60f6f5494f9aba4fc36e53348d1f7ec0838eaeaf72a70ae  cdw_fs.c.patch
60f882f246ca3739e207d91c95ddf41b03f306012fa771ecf5f9a62497756b8e4d615c2bbc71bfa02cab3cd77b6f6ecf7367a9ef92319f46764f89412b1e2cff  cdw_colors.c.patch"