diff options
author | Christopher Arndt | 2020-08-10 13:13:37 +0200 |
---|---|---|
committer | Christopher Arndt | 2020-08-10 13:13:37 +0200 |
commit | 09d70f32d163ef9fc973c3b1696e786b15e32a52 (patch) | |
tree | c898776f63ee204d1564edd0d634da5b19d25e4d | |
parent | a4c7c15c7441b1750b2f893635da3556e85427b0 (diff) | |
download | aur-09d70f32d163ef9fc973c3b1696e786b15e32a52.tar.gz |
Various PKGBUILD improvements
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 66 |
3 files changed, 53 insertions, 39 deletions
@@ -1,15 +1,22 @@ pkgbase = bharvestr.lv2-git - pkgdesc = An experimental granular synthesizer LV2 plugin. - pkgver = r170.0ad7f60 + pkgdesc = An experimental granular synthesizer LV2 plugin (git version) + pkgver = r171.8025b9b pkgrel = 1 url = https://github.com/sjaehn/BHarvestr arch = x86_64 - license = GPL - depends = git - depends = lv2 - depends = libsndfile + groups = lv2-plugins + groups = pro-audio + license = GPL3 + checkdepends = lv2lint + makedepends = git + makedepends = lv2 depends = cairo - depends = pkg-config + depends = gcc-libs + depends = glibc + depends = libsndfile + depends = libx11 + provides = bharvestr.lv2 + conflicts = bharvestr.lv2 source = bharvestr.lv2::git+https://github.com/sjaehn/BHarvestr md5sums = SKIP diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..8bad8e0a3283 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +bharvestr.lv2/ +bharvestr.lv2-git-*.pkg.tar.xz +bharvestr.lv2-git-*.pkg.tar.zst +pkg/ +src/
\ No newline at end of file @@ -1,50 +1,52 @@ # Maintainer: Milkii Brewster <milkii on Freenode IRC> -maintaner="Milkii Brewster <milkii on Freenode IRC>" -_pkgname="bharvestr.lv2" +# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de> + +_name="BHarvestr" +_pkgname="${_name,,}.lv2" +_plugin_uri="https://www.jahnichen.de/plugins/lv2/${_name}" pkgname="${_pkgname}-git" -pkgdesc="An experimental granular synthesizer LV2 plugin." -pkgver=r170.0ad7f60 +pkgdesc="An experimental granular synthesizer LV2 plugin (git version)" +pkgver=r171.8025b9b pkgrel=1 -epoch= arch=(x86_64) -url="https://github.com/sjaehn/BHarvestr" -license=(GPL) -groups=() -depends=('git' 'lv2' 'libsndfile' 'cairo' 'pkg-config') -makedepends=() -checkdepends=() -optdepends=() -provides=() -conflicts=() -replaces=() -backup=() -options=() -install= -changelog= -source=("bharvestr.lv2::git+https://github.com/sjaehn/BHarvestr") -noextract=() +url="https://github.com/sjaehn/${_name}" +license=('GPL3') +groups=('lv2-plugins' 'pro-audio') +depends=('cairo' 'gcc-libs' 'glibc' 'libsndfile' 'libx11') +makedepends=('git' 'lv2') +checkdepends=('lv2lint') +provides=("${_pkgname}") +conflicts=("${_pkgname}") +source=("${_pkgname}::git+https://github.com/sjaehn/${_name}") md5sums=('SKIP') + pkgver() { - cd "$_pkgname" + cd "${srcdir}/${_pkgname}" ( set -o pipefail - git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + git describe --long --tags 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" +build() { + cd "${srcdir}/${_pkgname}" + make } -build() -{ - cd "$_pkgname" - # ./configure --prefix=/usr - make +check() { + cd "${srcdir}/${_pkgname}" + echo lv2lint -Mpack -I "${_name}.lv2/" "${_plugin_uri}" + # TTL has no minor/microVersion yet, so skip tests for these until first release + lv2lint -t "Plugin Version *" -Mpack -I "${_name}.lv2/" "${_plugin_uri}" } package() { - cd "$_pkgname" - make PREFIX="/usr" DESTDIR="$pkgdir/" install + cd "${srcdir}/${_pkgname}" + make PREFIX="/usr" DESTDIR="$pkgdir/" install + install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" + # remove useless license file + find "${pkgdir}/usr/lib/" -type f -iname "*LICENSE*" -delete + # delete unused PNG files installed directly into bundle dir + rm -f "${pkgdir}"/usr/lib/lv2/${_name}.lv2/*.png } |