diff options
Diffstat (limited to 'libre/hydrogen-libre/PKGBUILD')
-rw-r--r-- | libre/hydrogen-libre/PKGBUILD | 49 |
1 files changed, 23 insertions, 26 deletions
diff --git a/libre/hydrogen-libre/PKGBUILD b/libre/hydrogen-libre/PKGBUILD index df866a6c1..49f7979bf 100644 --- a/libre/hydrogen-libre/PKGBUILD +++ b/libre/hydrogen-libre/PKGBUILD @@ -1,64 +1,61 @@ -# $Id: PKGBUILD 184270 2013-05-05 10:45:11Z schiv $ +# $Id: PKGBUILD 219544 2014-08-11 12:03:56Z schiv $ # Maintainer (Arch): Ray Rashif <schiv@archlinux.org> # Contributor (Arch): tobias <tobias@archlinux.org> -# Contributor (Arch): K. Piche <kpiche@rogers.com> -# Contributor (Arch): Giovanni Scafora <giovanni@archlinux.org> +# Contributor (Arch): see .contrib +# Maintainer: André Silva <emulatorman@parabola.nu> _pkgname=hydrogen pkgname=hydrogen-libre -pkgver=0.9.5.1 -pkgrel=4 +pkgver=0.9.6 +pkgrel=1 pkgdesc="An advanced drum machine, without nonfree drumkits recommendation" arch=('i686' 'x86_64' 'mips64el') license=('GPL') url="http://www.hydrogen-music.org/" -depends=('libarchive' 'liblrdf' 'qt4' 'jack') -makedepends=('scons' 'optipng') +depends=('libarchive' 'liblrdf' 'qt4' 'jack' 'libpulse') +optdepends=('rubberband') +makedepends=('cmake') replaces=($_pkgname) conflicts=($_pkgname) provides=($_pkgname=$pkgver) -source=("http://downloads.sourceforge.net/$_pkgname/$_pkgname-$pkgver.tar.gz" - 'lrdf_raptor2.patch' - 'install.patch') +source=("https://github.com/hydrogen-music/hydrogen/archive/$pkgver.tar.gz" + 'lrdf_raptor2.patch') install=$_pkgname.install -options=('emptydirs') -md5sums=('52f3a528705818c65acf546a3be4c6fb' - '2124851e890f46158189b5fa90006d40' - 'ce3a83a069b55e46aa532b55e803c9a5') +md5sums=('e4424926a88af82fb2048b3548723827' + '6f15bc059d3c39e9c34e0fbac92baf61') prepare() { cd "$srcdir/$_pkgname-$pkgver" # Change to list with only free licensed drumkits - sed -i -e 's|www.hydrogen-music.org/feeds/drumkit_list.php|repo.parabolagnulinux.org/other/hydrogen-libre/feeds/drumkit_list.php|'\ - {data/{hydrogen.default.conf,doc/manual{.docbook,_nl.html,_es.html,_fr.html,.pot,_fr.po,_es.po,_en.html,_ca.html,_it.html}},gui/src/SoundLibrary/SoundLibraryImportDialog.cpp,libs/hydrogen/src/preferences.cpp} || read + sed -i -e 's|www[.]hydrogen-music[.]org/feeds/drumkit_list[.]php|repo.parabolagnulinux.org/other/hydrogen-libre/feeds/drumkit_list.php|'\ + $(grep -rlI 'www[.]hydrogen-music[.]org/feeds/drumkit_list[.]php') # fix building with newer raptor # see https://bugs.archlinux.org/task/25060 - # TODO: report upstream + # see https://github.com/hydrogen-music/hydrogen/issues/194 patch -Np1 -i "$srcdir/lrdf_raptor2.patch" - # fix some install-time issues - # http://www.assembla.com/spaces/hydrogen/tickets/204 - patch -Np0 -i "$srcdir/install.patch" - # fix some pngs that break with newer libpng # see https://mailman.archlinux.org/pipermail/arch-dev-public/2013-May/024872.html - msg2 "Fixing PNGs, please wait..." - find -name '*.png' -exec optipng -quiet -force -fix {} + + #msg2 "Fixing PNGs, please wait..." + #find -name '*.png' -exec optipng -quiet -force -fix {} + } build() { cd "$srcdir/$_pkgname-$pkgver" - export QTDIR=/usr - scons prefix=/usr libarchive=1 + # lash will have to wait until I bring it into [extra] --schiv + cmake . -DCMAKE_INSTALL_PREFIX=/usr \ + -DWANT_CPPUNIT=OFF \ + -DWANT_LRDF=ON + make } package() { cd "$srcdir/$_pkgname-$pkgver" - scons DESTDIR="$pkgdir" install + make DESTDIR="$pkgdir" install } # vim:set ts=2 sw=2 et: |