blob: db4ea7708af2c9989022932694a7b07da4515cb4 (
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
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=hydrogen
pkgver=0.9.5
pkgrel=1
pkgdesc="Advanced drum machine for GNU/Linux"
url="http://www.hydrogen-music.org/"
arch="all"
license="GPLv2+"
depends=""
makedepends="qt-dev alsa-lib-dev flac-dev libsndfile-dev scons portaudio-dev
libarchive-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
}
build() {
cd "$_builddir"
export QTDIR=/usr/lib
scons -j${JOBS:-2} \
prefix=/usr \
jack=0 \
portaudio=1 \
libarchive=1 \
portmidi=0 \
lash=0 \
lrdf=0 \
oss=0 \
optflags="$CFLAGS" \
|| return 1
}
package() {
cd "$_builddir"
export QTDIR=/usr/lib
scons -j ${JOBS:-2} install DESTDIR="$pkgdir" || return 1
}
md5sums="e96f291d60e58f5d62fe616cee577dc0 hydrogen-0.9.5.tar.gz
0d9552ee114f57df67d677263816ec78 hydrogen-docdir.patch"
|