diff options
author | Christopher Arndt | 2020-07-20 23:27:53 +0200 |
---|---|---|
committer | Christopher Arndt | 2020-07-20 23:27:53 +0200 |
commit | 38a02dba217b4cb37319451e54ea93f2e1e47c7e (patch) | |
tree | f33edab075eecf2043e552f1bf2edd1663d88855 | |
download | aur-38a02dba217b4cb37319451e54ea93f2e1e47c7e.tar.gz |
Add new VCS package 'xtinyterror.lv2-git'
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
-rw-r--r-- | .SRCINFO | 27 | ||||
-rw-r--r-- | .gitignore | 8 | ||||
-rw-r--r-- | PKGBUILD | 63 |
3 files changed, 98 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3b0806eab7d6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = xtinyterror.lv2-git + pkgdesc = An amplifier simulation LV2 plugin modelled after a small british valve amp (git version) + pkgver = r9.6e37057 + pkgrel = 1 + url = https://github.com/brummer10/XTinyTerror.lv2 + arch = i686 + arch = x86_64 + groups = pro-audio + groups = lv2-plugins + license = 0BSD + makedepends = git + makedepends = lv2 + depends = cairo + depends = gcc-libs + depends = libx11 + provides = xtinyterror.lv2 + provides = xtinyterror.lv2=r9.6e37057 + provides = xtinyterror.lv2 + conflicts = xtinyterror.lv2 + conflicts = xtinyterror.lv2 + source = xtinyterror.lv2::git+https://github.com/brummer10/XTinyTerror.lv2.git + source = xputty::git+https://github.com/brummer10/Xputty.git + md5sums = SKIP + md5sums = SKIP + +pkgname = xtinyterror.lv2-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..3e31c5af570f --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +.AURINFO +pkg/ +src/ +xtinyterror.lv2/ +xputty/ +xtinyterror.lv2-git-*.tar.xz +xtinyterror.lv2-git-*.tar.zst +xtinyterror.lv2-git-*.src.tar.gz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..194eb99d8334 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,63 @@ +# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de> + +_reponame=XTinyTerror.lv2 +_pkgname=xtinyterror.lv2 +_lv2uri="http://guitarix.sourceforge.net/plugins/${_reponame//.lv2}_#_tinyterror_" +pkgname="${_pkgname}-git" +pkgver=r9.6e37057 +pkgrel=1 +pkgdesc="An amplifier simulation LV2 plugin modelled after a small british valve amp (git version)" +arch=('i686' 'x86_64') +url="https://github.com/brummer10/${_reponame}" +license=('0BSD') +depends=('cairo' 'gcc-libs' 'libx11') +makedepends=('git' 'lv2') +groups=('pro-audio' 'lv2-plugins') +provides=("${_pkgname}" "${_pkgname}=${pkgver//.r*/}" "${_pkgname//-/.}") +conflicts=("${_pkgname}" "${_pkgname//-/.}") +source=("${_pkgname}::git+https://github.com/brummer10/${_reponame}.git" + 'xputty::git+https://github.com/brummer10/Xputty.git') +md5sums=('SKIP' + 'SKIP') + + +pkgver() { + cd "${srcdir}/${_pkgname}" + + # no release yet and no version number anywhere in the sources + #local ver="$(grep '^\s*VER =' Xmonk/Makefile | cut -d ' ' -f 3)" + #echo "$ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" + echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" +} + +prepare() { + cd "${srcdir}/${_pkgname}" + + git submodule init + git config submodule.Xputty.url "${srcdir}/xputty" + git submodule update +} + +build() { + cd "${srcdir}/${_pkgname}" + make +} + +check() { + cd "${srcdir}/${_pkgname}" + mkdir -p lv2 + ln -sf ../${_reponame//.lv2}/${_reponame} lv2/${_reponame} + # expected to produce errors + #sord_validate -l "${PWD}/lv2/${_reponame}"/*.ttl || : + LV2_PATH="${PWD}/lv2:/usr/lib/lv2" lv2lint -M pack "${_lv2uri}" +} + +package() { + cd "${srcdir}/${_pkgname}" + make DESTDIR="${pkgdir}" PREFIX=/usr install + + # documentation + install -vDm 644 README.md "${_reponame//.lv2}.png" -t "${pkgdir}/usr/share/doc/${pkgname}" + # license + install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" +} |