aboutsummaryrefslogtreecommitdiffstats
path: root/main/hydrogen
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-04-04 17:27:17 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-04-04 17:27:17 +0000
commit612ba17268184e7848b0a53b8bea98bbf0996d7a (patch)
tree126909aacebba1c03f50b1f56ab9bb1003112c27 /main/hydrogen
parent2593571ac9cf8de0d5d4d02138096a9e956a7bee (diff)
downloadaports-612ba17268184e7848b0a53b8bea98bbf0996d7a.tar.bz2
aports-612ba17268184e7848b0a53b8bea98bbf0996d7a.tar.xz
main/hydrogen: moved from testing
Diffstat (limited to 'main/hydrogen')
-rw-r--r--main/hydrogen/APKBUILD54
-rw-r--r--main/hydrogen/hydrogen-docdir.patch11
2 files changed, 65 insertions, 0 deletions
diff --git a/main/hydrogen/APKBUILD b/main/hydrogen/APKBUILD
new file mode 100644
index 0000000000..2b58ed01fe
--- /dev/null
+++ b/main/hydrogen/APKBUILD
@@ -0,0 +1,54 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=hydrogen
+pkgver=0.9.5.1
+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 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"
diff --git a/main/hydrogen/hydrogen-docdir.patch b/main/hydrogen/hydrogen-docdir.patch
new file mode 100644
index 0000000000..71c6a6d86c
--- /dev/null
+++ b/main/hydrogen/hydrogen-docdir.patch
@@ -0,0 +1,11 @@
+--- ./Sconstruct.orig
++++ ./Sconstruct
+@@ -309,7 +309,7 @@
+ env.Alias(target="install", source=env.Install(dir= env['DESTDIR'] + env['prefix'] + '/share/hydrogen/data', source="./data/hydrogen.default.conf"))
+ env.Alias(target="install", source=env.Install(dir= env['DESTDIR'] + env['prefix'] + '/share/hydrogen/data', source="./data/emptySample.wav"))
+ env.Alias(target="install", source=env.Install(dir= env['DESTDIR'] + env['prefix'] + '/share/hydrogen/data', source="./data/click.wav"))
+- env.Alias(target="install", source=env.Install(dir= env['DESTDIR'] + env['prefix'] + '/share/hydrogen/data', source="./data/doc"))
++ env.Alias(target="install", source=env.Install(dir= env['DESTDIR'] + env['prefix'] + '/share/doc/hydrogen', source="./data/doc"))
+ env.Alias(target="install", source=env.Install(dir= env['DESTDIR'] + env['prefix'] + '/share/hydrogen/data', source="./data/DefaultSong.h2song"))
+ env.Alias(target="install", source=env.Install(dir= env['DESTDIR'] + env['prefix'] + '/bin/', source="./hydrogen"))
+ env.Alias(target="install", source=env.Install(dir= env['DESTDIR'] + env['prefix'] + '/share/applications', source="./hydrogen.desktop"))