summaryrefslogtreecommitdiffstats
path: root/main/hydrogen/APKBUILD
blob: 0be4fbd99001e734053cc8ebac05b8d095b057f1 (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: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=hydrogen
pkgver=0.9.6.1
pkgrel=0
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 cmake portaudio-dev
	libarchive-dev jack-dev"
install=""
subpackages="$pkgname-dev"
source="https://github.com/hydrogen-music/hydrogen/archive/$pkgver.tar.gz"

_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
}

build() {
	cd "$_builddir"
	export QTDIR=/usr/lib
	cmake . -DCMAKE_INSTALL_PREFIX=/usr \
		-DWANT_CPPUNIT=OFF \
		-DWANT_LRDF=ON \
		|| return 1
	make || return 1
}

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

md5sums="527a44eec22fd31f55e6b3cf1089613d  0.9.6.1.tar.gz"
sha256sums="94dadf433f0abbe7e0ae8e037726b3573f8b59abf118c9c084f06c561d56b66f  0.9.6.1.tar.gz"
sha512sums="afb501fb1565a95677aa2702f5d93ee611f03f60dfc8aa5a22714bb261bfeecf2b28e0b591763ec4d1a0b60f8153ef01c3fdfae924ca252943a2396ac953717f  0.9.6.1.tar.gz"