summaryrefslogtreecommitdiff
path: root/libre/hydrogen-libre
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-05-06 00:46:02 -0300
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-05-06 00:46:02 -0300
commit0c3ad6bfc6bbe8f6f94873fcbe3e8f3514690ff4 (patch)
tree1efe3773e4ca4a2f3eb4416b715cdabbb8f5cc02 /libre/hydrogen-libre
parent9af57c26d38aca92f95acaf6694a50bd483dd06e (diff)
downloadabslibre-0c3ad6bfc6bbe8f6f94873fcbe3e8f3514690ff4.tar.gz
abslibre-0c3ad6bfc6bbe8f6f94873fcbe3e8f3514690ff4.tar.bz2
abslibre-0c3ad6bfc6bbe8f6f94873fcbe3e8f3514690ff4.zip
hydrogen-libre-0.9.5.1-4: fix invalid pngs for incoming libpng 1.6 update
Diffstat (limited to 'libre/hydrogen-libre')
-rw-r--r--libre/hydrogen-libre/PKGBUILD52
-rw-r--r--libre/hydrogen-libre/hydrogen.install9
2 files changed, 43 insertions, 18 deletions
diff --git a/libre/hydrogen-libre/PKGBUILD b/libre/hydrogen-libre/PKGBUILD
index 562d4f3fd..0f9dfb3e3 100644
--- a/libre/hydrogen-libre/PKGBUILD
+++ b/libre/hydrogen-libre/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id$
+# $Id: PKGBUILD 184270 2013-05-05 10:45:11Z schiv $
# Maintainer: Ray Rashif <schiv@archlinux.org>
# Contributor: tobias <tobias@archlinux.org>
# Contributor: K. Piche <kpiche@rogers.com>
@@ -7,42 +7,58 @@
_pkgname=hydrogen
pkgname=hydrogen-libre
pkgver=0.9.5.1
-pkgrel=3.1
-pkgdesc="Advanced Drum Machine (without nonfree drumkits recommendation)"
+pkgrel=4
+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')
-#options=('!makeflags')
-replaces=("${_pkgname}")
-conflicts=("${_pkgname}")
-provides=("${_pkgname}=${pkgver}")
-source=(http://downloads.sourceforge.net/${_pkgname}/${_pkgname}-${pkgver}.tar.gz
- lrdf_raptor2.patch
- install.patch)
+makedepends=('scons' 'optipng')
+replaces=$_pkgname
+conflicts=$_pkgname
+provides=$_pkgname=$pkgver
+source=("http://downloads.sourceforge.net/$_pkgname/$_pkgname-$pkgver.tar.gz"
+ 'lrdf_raptor2.patch'
+ 'install.patch')
+install=$_pkgname.install
+options=('emptydirs')
md5sums=('52f3a528705818c65acf546a3be4c6fb'
'2124851e890f46158189b5fa90006d40'
'ce3a83a069b55e46aa532b55e803c9a5')
-build() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+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
- export QTDIR=/usr
- patch -Np1 -i "${srcdir}/lrdf_raptor2.patch"
+ # fix building with newer raptor
+ # see https://bugs.archlinux.org/task/25060
+ # TODO: report upstream
+ 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"
+ 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 {} +
+}
+
+build() {
+ cd "$srcdir/$_pkgname-$pkgver"
+
+ export QTDIR=/usr
scons prefix=/usr libarchive=1
}
package() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "$srcdir/$_pkgname-$pkgver"
- scons DESTDIR="${pkgdir}" install
+ scons DESTDIR="$pkgdir" install
}
# vim:set ts=2 sw=2 et:
diff --git a/libre/hydrogen-libre/hydrogen.install b/libre/hydrogen-libre/hydrogen.install
new file mode 100644
index 000000000..ef354d1f5
--- /dev/null
+++ b/libre/hydrogen-libre/hydrogen.install
@@ -0,0 +1,9 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+# vim:set ts=2 sw=2 et: