diff options
-rw-r--r-- | .SRCINFO | 26 | ||||
-rw-r--r-- | .gitignore | 8 | ||||
-rw-r--r-- | PKGBUILD | 72 |
3 files changed, 106 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e719684d6fc3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,26 @@ +pkgbase = rtjam-git + pkgdesc = A server and client programs and plugins for real-time,low-latency online jams (git version) + pkgver = 0.1.r87.gbdb7e88 + pkgrel = 1 + url = https://github.com/mfvargo/rtjam + arch = x86_64 + groups = pro-audio + groups = lv2-plugins + groups = vst-plugins + license = MIT + depends = curl + depends = gcc-libs + depends = libgl + depends = libx11 + optdepends = jack: stand-alone JACK client version + optdepends = alsa-lib: stand-alone ALSA server version (rtjam-nojack) + provides = rtjam + provides = rtjam=0.1 + conflicts = rtjam + source = rtjam::git+https://github.com/mfvargo/rtjam.git + source = dpf::git+https://github.com/DISTRHO/DPF.git + md5sums = SKIP + md5sums = SKIP + +pkgname = rtjam-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..1be3f7d9cf50 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +pkg/ +src/ +dpf/ +rtjam/ +rtjam-git-*.pkg.tar.xz +rtjam-git-*.pkg.tar.zst +rtjam-git-*.src.tar.gz +.AURINFO diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a85b3e2bbe59 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,72 @@ +# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de> + +_pkgname=rtjam +pkgname="${_pkgname}-git" +pkgver=0.1.r87.gbdb7e88 +pkgrel=1 +pkgdesc="A server and client programs and plugins for real-time,low-latency online jams (git version)" +arch=('x86_64') +url='https://github.com/mfvargo/rtjam' +license=('MIT') +groups=('pro-audio' 'lv2-plugins' 'vst-plugins') +depends=('curl' 'gcc-libs' 'libgl' 'libx11') +makedepens=('git' 'jack') +optdepends=( + 'jack: stand-alone JACK client version' + 'alsa-lib: stand-alone ALSA server version (rtjam-nojack)') +provides=("${_pkgname}" "${_pkgname}=${pkgver//.r*/}") +conflicts=("${_pkgname}") +source=("${_pkgname}::git+https://github.com/mfvargo/rtjam.git" + 'dpf::git+https://github.com/DISTRHO/DPF.git') +md5sums=('SKIP' 'SKIP') + + +pkgver() { + cd "${srcdir}/${_pkgname}" + + ( + set -o pipefail + git describe --long --tags 2>/dev/null | sed -e 's/^v//' -e 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +prepare() { + cd "${srcdir}/${_pkgname}" + + git submodule init + git config submodule.dpf.url "${srcdir}/dpf" + git submodule update + + # Don't let CPPFLAGS in environment override custom include paths set in Makefile + sed -i -e 's/CPPFLAGS ?=/CPPFLAGS := $(CPPFLAGS)/' plugins/nojack/Makefile +} + +build() { + cd "${srcdir}/${_pkgname}" + + make +} + +package() { + cd "${srcdir}/${_pkgname}" + + # install plugin LV2 bundles and VST binaries + install -Dm755 bin/rtjam -t "${pkgdir}"/usr/bin + install -m755 bin/broadcast "${pkgdir}"/usr/bin/rtjam-broadcast + install -m755 bin/nojack "${pkgdir}"/usr/bin/rtjam-nojack + + # install LV2 plugin + install -Dm755 bin/rtjam.lv2/*.so -t "${pkgdir}"/usr/lib/lv2/rtjam.lv2 + install -Dm644 bin/rtjam.lv2/*.ttl bin/rtjam.lv2/*.json \ + -t "${pkgdir}"/usr/lib/lv2/rtjam.lv2 + + # install VST2 plugin + install -Dm755 bin/rtjam-vst.so -t "${pkgdir}"/usr/lib/vst + + # install documentation + install -Dm644 README.md *.png \ + -t "${pkgdir}"/usr/share/doc/${pkgname} + # install license file + install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname} +} |