aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dsf2flac/APKBUILD
blob: 6baecfb39c23460a02d379ef5c3c9fac69e8ece5 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=dsf2flac
pkgver=0_svn20141014
pkgrel=2
pkgdesc="Command line tool to convert dsf audio files to flac"
url="https://code.google.com/p/dsf2flac/"
arch="x86_64"
license="GPL3"
depends=""
depends_dev="boost-dev id3lib-dev flac-dev libogg-dev"
makedepends="$depends_dev cmake"
install=""
subpackages=""
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz
	no-static.patch"
svnurl="http://dsf2flac.googlecode.com/svn/trunk"
disturl="dev.alpinelinux.org:/archive/$pkgname/"


_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"
	cmake . || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	install -Dm755 dsf2flac \
		"$pkgdir/usr/bin/dsf2flac" || return 1
}

md5sums="7fad18c6e2609dc9f504dbe6b8cb3794  dsf2flac-0_svn20141014.tar.gz
bf87f878b715819714e3c09ef1a0a65e  no-static.patch"
sha256sums="9b09c7c31ad333a589d2781eab6d2d1f6b2225509fecc53ca3ccce2e32bd3e18  dsf2flac-0_svn20141014.tar.gz
ddccabe02603cfab7297dc13ce16070255e0bf9ea4b16c885204e0f82fa1f1f6  no-static.patch"
sha512sums="1e2db947b1b3958333f5c9476dfd162d48897d933e9bc37418e3fc4028423131af813be9536cba0fcfdacd9a7fa3c6563ef1638508746d96fb0629d0e75f4450  dsf2flac-0_svn20141014.tar.gz
2b027a6c42c12babb4861d40e94dc573137dbbc48209e1ade29813107ba7c2915ea2685a365201a07d94ac3ae686ac613614feeda18655f6259b2e114a22cda4  no-static.patch"