Skip to content

Commit

Permalink
feat: add package 'ssr-git'
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Arndt <[email protected]>
  • Loading branch information
SpotlightKid committed Mar 5, 2022
1 parent d11cdcc commit 4409c0c
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
pkg/
src/
/out.SHA512
packages/*/.SRCINFO
5 changes: 5 additions & 0 deletions packages/ssr-git/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dpf/
pkg/
src/
ssr-git-*.pkg.tar.*
ssr/
49 changes: 49 additions & 0 deletions packages/ssr-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Maintainer: OSAMC <https://github.com/osam-cologne/archlinux-proaudio>
# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
# Contributor: Milkii Brewster <milkii on Freenode IRC>

_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}
}

0 comments on commit 4409c0c

Please sign in to comment.