summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Arndt2016-02-03 15:53:01 +0100
committerChristopher Arndt2016-02-03 15:53:01 +0100
commit0ba589bd89344e6d12a86fcb4446a5652a858abc (patch)
treef67ff392fbf7e5ee1ce499c6020244acf94182ea
downloadaur-0ba589bd89344e6d12a86fcb4446a5652a858abc.tar.gz
Ported package hydrogen-git from AUR 3 archive
-rw-r--r--.SRCINFO29
-rw-r--r--.gitignore6
-rw-r--r--PKGBUILD60
-rw-r--r--hydrogen.install9
4 files changed, 104 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ab0a45d0d07
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,29 @@
+# Generated by mksrcinfo v8
+# Wed Feb 3 14:52:35 UTC 2016
+pkgbase = hydrogen-git
+ pkgdesc = An advanced drum machine - git version
+ pkgver = 0.9.7.beta1.r90.g5c9eb00
+ pkgrel = 1
+ url = https://github.com/hydrogen-music/hydrogen
+ install = hydrogen.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = cmake
+ depends = desktop-file-utils
+ depends = libarchive
+ depends = liblrdf
+ depends = qt4
+ depends = jack
+ depends = libpulse
+ depends = lash
+ depends = liblo
+ optdepends = rubberband: Audio Time Stretcher Library
+ provides = hydrogen
+ conflicts = hydrogen
+ source = hydrogen::git://github.com/hydrogen-music/hydrogen.git
+ md5sums = SKIP
+
+pkgname = hydrogen-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..2a97644e81d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+pkg/
+src/
+.AURINFO
+hydrogen/
+hydrogen-git-*.tar.xz
+hydrogen-git-*.src.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..146ed374c49
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,60 @@
+# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>
+# Contributor: hbdee <hbdee.arch@gmail.com>
+
+pkgname=hydrogen-git
+_pkgname=hydrogen
+pkgver=0.9.7.beta1.r90.g5c9eb00
+pkgrel=1
+pkgdesc="An advanced drum machine - git version"
+arch=('i686' 'x86_64')
+license=('GPL')
+url="https://github.com/hydrogen-music/hydrogen"
+depends=('desktop-file-utils' 'libarchive' 'liblrdf' 'qt4' 'jack' 'libpulse'
+ 'lash' 'liblo')
+optdepends=('rubberband: Audio Time Stretcher Library')
+makedepends=('git' 'cmake')
+source=("$_pkgname"::'git://github.com/hydrogen-music/hydrogen.git')
+install=$_pkgname.install
+provides=('hydrogen')
+conflicts=('hydrogen')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ # Use the tag of the last commit
+ git describe --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd "$srcdir/$_pkgname"
+
+ if [[ -d build ]]; then
+ rm -rf build
+ fi
+
+ mkdir build
+
+ # 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"
+
+ cmake ../$_pkgname \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DWANT_LASH=ON \
+ -DWANT_LRDF=ON \
+ -DWANT_CPPUNIT=OFF
+ make
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+
+ make DESTDIR="${pkgdir}" install
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/hydrogen.install b/hydrogen.install
new file mode 100644
index 00000000000..ef354d1f58a
--- /dev/null
+++ b/hydrogen.install
@@ -0,0 +1,9 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+# vim:set ts=2 sw=2 et: