# Contributor: Natanael Copa # Maintainer: Natanael Copa 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="hydrogen-$pkgver.tar.gz::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 hydrogen-0.9.6.1.tar.gz" sha256sums="94dadf433f0abbe7e0ae8e037726b3573f8b59abf118c9c084f06c561d56b66f hydrogen-0.9.6.1.tar.gz" sha512sums="afb501fb1565a95677aa2702f5d93ee611f03f60dfc8aa5a22714bb261bfeecf2b28e0b591763ec4d1a0b60f8153ef01c3fdfae924ca252943a2396ac953717f hydrogen-0.9.6.1.tar.gz"