summaryrefslogtreecommitdiffstats
path: root/main/hydrogen/APKBUILD
blob: a1743918a5020c1e748a18e63666c89c218aa110 (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
55
56
57
58
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=hydrogen
pkgver=0.9.5.1
pkgrel=2
pkgdesc="Advanced drum machine for GNU/Linux"
url="http://www.hydrogen-music.org/"
arch="all"
license="GPL2+"
depends=""
makedepends="qt-dev alsa-lib-dev flac-dev libsndfile-dev scons portaudio-dev
	libarchive-dev jack-dev"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/hydrogen/hydrogen-$pkgver.tar.gz
		hydrogen-docdir.patch"

_builddir="$srcdir"/hydrogen-$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
	patch -p0 -i patches/portaudio.patch || return 1
	sed -i -e '/path.walk/d' -e 's|\(pkg_ver.rstrip.*\)|\1[0:3]|' Sconstruct
}

build() {
	cd "$_builddir"
	export QTDIR=/usr/lib
	scons -j${JOBS:-2} \
		prefix=/usr \
		jack=1 \
		portaudio=1 \
		libarchive=1 \
		portmidi=0 \
		lash=0 \
		lrdf=0 \
		oss=0 \
		optflags="$CFLAGS" \
		|| return 1
}

package() {
	cd "$_builddir"
	export QTDIR=/usr/lib
	scons install DESTDIR="$pkgdir" || return 1
}

md5sums="52f3a528705818c65acf546a3be4c6fb  hydrogen-0.9.5.1.tar.gz
0d9552ee114f57df67d677263816ec78  hydrogen-docdir.patch"
sha256sums="ebe105fec9ce8e2129f9e1bb5bfe675f1c7143a80babda40620cb3ef9eb97ebb  hydrogen-0.9.5.1.tar.gz
ba726499d23983091a79f37b243f0e7e26c4b93bfb7613a441fb2cdfd1362b02  hydrogen-docdir.patch"
sha512sums="bcbd0684499f8ff019540746ed6ad5b99b5a1af04771365880e4fbdac5c26b5944c7f9815875390f42b8d2b428457d414732ed171589c094da99d99eae3a0873  hydrogen-0.9.5.1.tar.gz
365a115c00ed39037c9d62a049152f5bdaadc9eef7c6b813dea9f95627485f6e220c47abc16404d37ab0b71c27d4ec3c095864604d76456f338b7d0b14a7fddb  hydrogen-docdir.patch"