diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-09-15 16:56:44 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-09-15 16:56:44 +0000 |
commit | 59fb3d9f6e03fbef6581b986750b823c5466ee76 (patch) | |
tree | a81774dbf23ed2bdf145e952fc3fc590b4a3d2eb /testing/hydrogen | |
parent | 1d383f170718e9b4a5e10d6ad9eac7a8c980dfc0 (diff) | |
download | aports-59fb3d9f6e03fbef6581b986750b823c5466ee76.tar.bz2 aports-59fb3d9f6e03fbef6581b986750b823c5466ee76.tar.xz |
testing/hydrogen: new aport
Advanced drum machine for GNU/Linux
http://www.hydrogen-music.org/
Diffstat (limited to 'testing/hydrogen')
-rw-r--r-- | testing/hydrogen/APKBUILD | 52 | ||||
-rw-r--r-- | testing/hydrogen/hydrogen-docdir.patch | 11 |
2 files changed, 63 insertions, 0 deletions
diff --git a/testing/hydrogen/APKBUILD b/testing/hydrogen/APKBUILD new file mode 100644 index 0000000000..c661247946 --- /dev/null +++ b/testing/hydrogen/APKBUILD @@ -0,0 +1,52 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=hydrogen +pkgver=0.9.5 +pkgrel=0 +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" + scons install DESTDIR="$pkgdir" || return 1 +} + +md5sums="e96f291d60e58f5d62fe616cee577dc0 hydrogen-0.9.5.tar.gz +0d9552ee114f57df67d677263816ec78 hydrogen-docdir.patch" diff --git a/testing/hydrogen/hydrogen-docdir.patch b/testing/hydrogen/hydrogen-docdir.patch new file mode 100644 index 0000000000..71c6a6d86c --- /dev/null +++ b/testing/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")) |