summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Arndt2020-08-10 13:13:37 +0200
committerChristopher Arndt2020-08-10 13:13:37 +0200
commit09d70f32d163ef9fc973c3b1696e786b15e32a52 (patch)
treec898776f63ee204d1564edd0d634da5b19d25e4d
parenta4c7c15c7441b1750b2f893635da3556e85427b0 (diff)
downloadaur-bharvestr.lv2-git.tar.gz
Various PKGBUILD improvements
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
-rw-r--r--.SRCINFO21
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD66
3 files changed, 53 insertions, 39 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f712627388f..1b7c849d8d4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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 00000000000..8bad8e0a328
--- /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
diff --git a/PKGBUILD b/PKGBUILD
index e0808e7b95a..5c657ec6680 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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
}