aboutsummaryrefslogtreecommitdiffstats
path: root/main/cdw/APKBUILD
blob: 54e1797065fcaad22367b7f9099b04fa111ab57a (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
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=cdw
pkgver=0.8.1
pkgrel=0
pkgdesc="cdw is a front-end for cd recoding tools"
url="http://cdw.sf.net"
arch="all"
license="GPL-2.0"
depends="cdrkit"
depends_dev="ncurses-dev libcdio-dev libburn-dev bison gettext-dev"
makedepends="$depends_dev linux-headers"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz
	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="-lintl" && ./configure --prefix=/usr
	make
}

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

md5sums="9e6b5c2bbe54e8f1dc0d20e3cb966e5c  cdw-0.8.1.tar.gz
919951dbb5ffa814b56b2f98529cc180  cdw_colors.c.patch"
sha256sums="e7eb49c5c58f26182c13ce62aa80297b281218b1def5f2aad8fa02740cbb979c  cdw-0.8.1.tar.gz
34baba8bac6649cce0f5d69978366df8a7dd92ff6cb61941468eae9e6de539c4  cdw_colors.c.patch"
sha512sums="08f6bac823f534987835f434190601d0a72df2246ff78bfe1af98fd30dda25edb8cf2e09161b3a0bc55e9efefbc453b409cc95fd3c117d447f07e49f79072e33  cdw-0.8.1.tar.gz
60f882f246ca3739e207d91c95ddf41b03f306012fa771ecf5f9a62497756b8e4d615c2bbc71bfa02cab3cd77b6f6ecf7367a9ef92319f46764f89412b1e2cff  cdw_colors.c.patch"