summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD59
2 files changed, 36 insertions, 36 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8492994bf55..5d9e594dfb0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,24 @@
pkgbase = drmr-git
- pkgdesc = DrMr is an LV2 sampler plugin that can play Hydrogen drumkits
- pkgver = 20120709
- pkgrel = 2
+ pkgdesc = DrMr is an LV2 sampler plugin that can play Hydrogen drumkits.
+ pkgver = r90.ba6994a
+ pkgrel = 1
url = https://github.com/nicklan/drmr
arch = i686
arch = x86_64
- groups = drmr
+ groups = lv2-plugins
license = GPL
makedepends = git
depends = libsndfile
depends = libsamplerate
depends = expat
depends = lv2
+ depends = gtk2
provides = drmr
+ provides = drmr
+ conflicts = drmr
conflicts = drmr
+ source = drmr::git+https://github.com/nicklan/drmr.git
+ md5sums = SKIP
pkgname = drmr-git
diff --git a/PKGBUILD b/PKGBUILD
index 79d74e76c29..eb45d346112 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,46 +1,41 @@
-# Maintainer: Nick Lanham <nick@afternight.org>
-pkgname=drmr-git
-pkgver=20120709
-pkgrel=2
-pkgdesc="DrMr is an LV2 sampler plugin that can play Hydrogen drumkits"
+# Maintainer: Valentin Rouet <v.rouet@gmail.com>
+
+_pkgname=drmr
+pkgname="${_pkgname}-git"
+pkgver=r90.ba6994a
+pkgrel=1
+pkgdesc="DrMr is an LV2 sampler plugin that can play Hydrogen drumkits."
arch=('i686' 'x86_64')
license=('GPL')
url="https://github.com/nicklan/drmr"
-groups=('drmr')
-depends=('libsndfile' 'libsamplerate' 'expat' 'lv2')
+groups=('lv2-plugins')
+depends=('libsndfile' 'libsamplerate' 'expat' 'lv2' 'gtk2')
makedepends=('git')
-provides=('drmr')
-conflicts=('drmr')
-
-_gitroot="git://github.com/nicklan/drmr.git"
-_gitname="drmr"
-
-build() {
- cd "${srcdir}/"
- msg "Getting git sources"
-
- if [ -d ${srcdir}/$_gitname ] ; then
- cd $_gitname && git pull origin
- msg "The local files are updated."
- else
- git clone ${_gitroot}
- fi
+provides=('drmr' "${_pkgname}")
+conflicts=('drmr' "${_pkgname}")
+source=("${_pkgname}::git+https://github.com/nicklan/drmr.git")
+md5sums=('SKIP')
- msg "Git checkout finished"
- msg "Building package"
-
- msg "PKG: $pkgdir"
-
- cd ${srcdir}/${_gitname}
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ revision=$(git rev-list --count HEAD)
+ hash=$(git rev-parse --short HEAD)
+ echo r$revision.$hash
+}
- [ -d build ] || mkdir build && cd build
+build() {
+ cd "${srcdir}/${_pkgname}"
- cmake .. -DCMAKE_INSTALL_PREFIX=/usr
+ mkdir -p build
+ cd build
+ cmake .. \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
- cd "${srcdir}/${_gitname}/build"
+ cd "${srcdir}/${_pkgname}/build"
make DESTDIR="$pkgdir/" install
}