diff options
author | Christopher Arndt | 2018-06-10 16:46:50 +0200 |
---|---|---|
committer | Christopher Arndt | 2018-06-10 16:46:50 +0200 |
commit | 680e97517a371dd4ccbc057c86fadb2b87e51aad (patch) | |
tree | 4ec0c07b310558a5e4306e16a0a6b52eebfb6d45 | |
download | aur-680e97517a371dd4ccbc057c86fadb2b87e51aad.tar.gz |
Add new package 'oxefmsynth-git'
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 59 |
3 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cfcbbb64bafd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = oxefmsynth-git + pkgdesc = An 8-OP FM synthesizer VST plug-in (git version) + pkgver = 1.3.6.r113.f42210e + pkgrel = 1 + url = http://www.oxesoft.com/ + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = steinberg-vst36 + makedepends = git + depends = mesa + provides = oxefmsynth + conflicts = oxefmsynth + source = oxefmsynth::git+https://github.com/oxesoft/oxefmsynth.git + md5sums = SKIP + +pkgname = oxefmsynth-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..a79bf389ad08 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +src/ +pkg/ +oxefmsynth/ +oxefmsynth-git-*.tar.xz +oxefmsynth-git-*.src.tar.gz +.AURINFO diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..22ba04f5e872 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,59 @@ +# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de> + +_pkgname=oxefmsynth +pkgname="${_pkgname}-git" +pkgver=1.3.6.r113.f42210e +pkgrel=1 +pkgdesc="An 8-OP FM synthesizer VST plug-in (git version)" +arch=('i686' 'x86_64') +url="http://www.oxesoft.com/" +license=('GPL3') +depends=('mesa') +makedepends=('steinberg-vst36' 'git') +provides=('oxefmsynth') +conflicts=('oxefmsynth') +source=("${_pkgname}::git+https://github.com/oxesoft/oxefmsynth.git") +md5sums=('SKIP') + + +pkgver() { + cd "${srcdir}/${_pkgname}" + + local ver=$(grep '#define VERSION_STR' src/synth/constants.h | cut -d '"' -f 2) + echo "$ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" +} + +prepare() { + cd "${srcdir}/${_pkgname}" + + for file in Makefile.vstlinux \ + src/vst/oxevst.h \ + src/vst/oxevsteditor.h \ + src/vst/oxevsteditor.cpp \ + src/vst/vsthostinterface.cpp; do + sed -i -e 's|public.sdk/source/vst2.x/||g' "$file" + done + + sed -i -e 's| "VERSION_STR| " VERSION_STR|' src/synth/constants.h + sed -i -e 's|BMP_PATH| BMP_PATH |' src/toolkits/xlibtoolkit.cpp +} + +build() { + cd "${srcdir}/${_pkgname}" + + export VSTSDK_PATH="/usr/include/vst36" + export CFLAGS="$CFLAGS -std=c++11 -Wno-narrowing" + make -f Makefile.vstlinux LIBS="-lX11 -lGL -lpthread -ldl" +} + +package() { + cd "${srcdir}/${_pkgname}" + + if [[ $CARCH == 'i686' ]]; then + _arch=32 + elif [[ $CARCH == 'x86_64' ]]; then + _arch=64 + fi + + install -D oxevst${_arch}.so "$pkgdir/usr/lib/vst/oxevst${_arch}.so" +} |