aboutsummaryrefslogtreecommitdiffstats
path: root/community/hydrogen
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-07-10 09:50:47 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-07-10 09:50:47 +0000
commit6f85000492669d914ec887fad06cd7963a38d111 (patch)
tree28d60d747f2762b0adbef7cc44aa2c0537f5deb3 /community/hydrogen
parentc4b3f1a2b4e5409fc9369c2bd40e1823d2c7f15e (diff)
downloadaports-6f85000492669d914ec887fad06cd7963a38d111.tar.bz2
aports-6f85000492669d914ec887fad06cd7963a38d111.tar.xz
community/hydrogen: move from main
Diffstat (limited to 'community/hydrogen')
-rw-r--r--community/hydrogen/APKBUILD33
-rw-r--r--community/hydrogen/hydrogen-docdir.patch11
2 files changed, 44 insertions, 0 deletions
diff --git a/community/hydrogen/APKBUILD b/community/hydrogen/APKBUILD
new file mode 100644
index 0000000000..e7c9ccda6a
--- /dev/null
+++ b/community/hydrogen/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=hydrogen
+pkgver=0.9.7
+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"
+subpackages="$pkgname-dev"
+source="hydrogen-$pkgver.tar.gz::https://github.com/hydrogen-music/hydrogen/archive/$pkgver.tar.gz"
+
+builddir="$srcdir"/hydrogen-$pkgver
+
+build() {
+ cd "$_builddir"
+ export QTDIR=/usr/lib
+ cmake . -DCMAKE_INSTALL_PREFIX=/usr \
+ -DWANT_CPPUNIT=OFF \
+ -DWANT_LRDF=ON
+ make
+}
+
+package() {
+ cd "$builddir"
+ export QTDIR=/usr/lib
+ make install DESTDIR="$pkgdir"
+}
+
+sha512sums="1480a18d1181d12e92a53e89a4d1c8f4ae9a8a9a02271e6af4089afaaca9d658abb3876dc7db08a453bbe3ab7f66f31567d992f30102818782b62ebba5141f58 hydrogen-0.9.7.tar.gz"
diff --git a/community/hydrogen/hydrogen-docdir.patch b/community/hydrogen/hydrogen-docdir.patch
new file mode 100644
index 0000000000..71c6a6d86c
--- /dev/null
+++ b/community/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"))