From 4409c0c57125ac0f97d8c4c7dee10ddca65c09f4 Mon Sep 17 00:00:00 2001 From: Christopher Arndt Date: Sat, 5 Mar 2022 00:29:01 +0100 Subject: [PATCH] feat: add package 'ssr-git' Signed-off-by: Christopher Arndt --- .gitignore | 1 + packages/ssr-git/.gitignore | 5 ++++ packages/ssr-git/PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 packages/ssr-git/.gitignore create mode 100644 packages/ssr-git/PKGBUILD diff --git a/.gitignore b/.gitignore index 492929c9..49456021 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ pkg/ src/ /out.SHA512 +packages/*/.SRCINFO diff --git a/packages/ssr-git/.gitignore b/packages/ssr-git/.gitignore new file mode 100644 index 00000000..d255ab9b --- /dev/null +++ b/packages/ssr-git/.gitignore @@ -0,0 +1,5 @@ +dpf/ +pkg/ +src/ +ssr-git-*.pkg.tar.* +ssr/ diff --git a/packages/ssr-git/PKGBUILD b/packages/ssr-git/PKGBUILD new file mode 100644 index 00000000..0a19b8b5 --- /dev/null +++ b/packages/ssr-git/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: OSAMC +# Contributor: Christopher Arndt +# Contributor: Milkii Brewster + +_pkgname=ssr +pkgname="$_pkgname-git" +pkgdesc="A sympathetic string resonator plugin and JACK application (git version)." +pkgver=r10.e1999da +pkgrel=1 +arch=(x86_64) +url="https://github.com/jpcima/ssr" +license=(MIT) +groups=(lv2-plugins pro-audio vst-plugins) +depends=(cairo) +makedepends=(git mesa jack) +optdepends=('jack: stand-alone JACK application') +provides=("$_pkgname" "$_pkgname.lv2") +conflicts=("$_pkgname" "$_pkgname.lv2" "$_pkgname.lv2-git") +source=("$_pkgname::git+https://github.com/jpcima/ssr" + 'dpf::git+https://github.com/DISTRHO/DPF.git' +) +sha256sums=(SKIP SKIP) + +pkgver() { + cd $_pkgname + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd $_pkgname + git submodule init + git config submodule.dpf.url "$srcdir/dpf" + git submodule update +} + +build() { + cd $_pkgname + make PREFIX=/usr BUILD_VST2=true +} + +package() { + depends+=(libjack.so) + cd $_pkgname + make PREFIX=/usr DESTDIR="$pkgdir/" BUILD_VST2=true install + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/${pkgname} +}