summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Appelt2017-10-31 19:00:16 +0100
committerDaniel Appelt2017-10-31 19:00:16 +0100
commit8a0b9b35f35aeaddf4a548c872a49a3717b311e6 (patch)
tree0a0b207e0c0ef3af743ab92ea2fd9967c6340c6c
downloadaur-8a0b9b35f35aeaddf4a548c872a49a3717b311e6.tar.gz
Initial commit
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD56
2 files changed, 81 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d080daba2d0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+# Generated by mksrcinfo v8
+# Tue Oct 31 17:52:39 UTC 2017
+pkgbase = distrho-extra-lv2-git
+ pkgdesc = Extra LV2 ports of JUCE-based audio plugins using the DISTRHO framework
+ pkgver = r25.0b3a99b
+ pkgrel = 1
+ url = http://distrho.sourceforge.net/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ license = MIT
+ makedepends = git
+ makedepends = premake3
+ depends = lv2
+ depends = freetype2
+ depends = libxext
+ provides = distrho-extra-lv2
+ conflicts = distrho-extra-lv2
+ source = distrho::git://github.com/DISTRHO/DISTRHO-Ports.git
+ source = distrho-extra-lv2::git://github.com/DISTRHO/DISTRHO-Ports-Extra.git
+ sha256sums = SKIP
+ sha256sums = SKIP
+
+pkgname = distrho-extra-lv2-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e168ff55cea
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,56 @@
+# Maintainer: Daniel Appelt <daniel.appelt@gmail.com>
+_pkgbasename=distrho-extra-lv2
+pkgname=${_pkgbasename}-git
+pkgver=r25.0b3a99b
+pkgrel=1
+pkgdesc="Extra LV2 ports of JUCE-based audio plugins using the DISTRHO framework"
+arch=('i686' 'x86_64')
+url="http://distrho.sourceforge.net/"
+license=('GPL' 'MIT')
+depends=('lv2' 'freetype2' 'libxext')
+makedepends=('git' 'premake3')
+provides=("${_pkgbasename}")
+conflicts=("${_pkgbasename}")
+source=("${_pkgbasename%%-*}::git://github.com/DISTRHO/DISTRHO-Ports.git"
+ "${_pkgbasename}::git://github.com/DISTRHO/DISTRHO-Ports-Extra.git")
+sha256sums=('SKIP'
+ 'SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_pkgbasename}"
+
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "${srcdir}/${_pkgbasename%%-*}"
+
+ # generate build script
+ scripts/premake-update.sh linux
+ # https://github.com/DISTRHO/DISTRHO-Ports-Extra/issues/1
+ sed -i 's/JUCE_ALLOW_STATIC_NULL_VARIABLES 0/JUCE_ALLOW_STATIC_NULL_VARIABLES 1/' libs/juce/build-juce/AppConfig.h
+ make
+
+ cd "${srcdir}/${_pkgbasename}"
+
+ # redefine links to DISTRHO libs and scripts
+ ln -f -s "${srcdir}/${_pkgbasename%%-*}/libs"
+ ln -f -s "${srcdir}/${_pkgbasename%%-*}/scripts"
+
+ # generate build script
+ scripts/premake-update.sh linux
+}
+
+build() {
+ cd "${srcdir}/${_pkgbasename}"
+
+ make lv2
+}
+
+package() {
+ cd "${srcdir}/${_pkgbasename}"
+
+ # lv2 plugins
+ install -d "$pkgdir/usr/lib/lv2"
+ cp -a bin/lv2/*.lv2 "$pkgdir/usr/lib/lv2"
+}