aboutsummaryrefslogtreecommitdiffstats
path: root/main/cdw/APKBUILD
blob: 8ece6d866156340f62b4909ef1d34800bc89775c (plain) (blame)
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
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=cdw
pkgver=0.8.1
pkgrel=2
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=""
makedepends="ncurses-dev libcdio-dev libburn-dev bison gettext-dev linux-headers"
install=""
subpackages="$pkgname-doc"
source="https://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
}

sha512sums="08f6bac823f534987835f434190601d0a72df2246ff78bfe1af98fd30dda25edb8cf2e09161b3a0bc55e9efefbc453b409cc95fd3c117d447f07e49f79072e33  cdw-0.8.1.tar.gz
60f882f246ca3739e207d91c95ddf41b03f306012fa771ecf5f9a62497756b8e4d615c2bbc71bfa02cab3cd77b6f6ecf7367a9ef92319f46764f89412b1e2cff  cdw_colors.c.patch"