summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChristopher Arndt2020-08-18 15:55:31 +0200
committerChristopher Arndt2020-08-18 15:55:31 +0200
commit2f16f3682348612d271c6b435ff0cb9d138a848b (patch)
tree092ef3838ea7c0e915e95e9856cf6ab68315befd /PKGBUILD
parent74a1e71e176895939d55677785fc8419e5fbd2c5 (diff)
downloadaur-2f16f3682348612d271c6b435ff0cb9d138a848b.tar.gz
Various PKGBUILD improvements & fixes
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD64
1 files changed, 32 insertions, 32 deletions
diff --git a/PKGBUILD b/PKGBUILD
index c6e822e9c62..87149e9a1de 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,50 +1,50 @@
# Maintainer: Milkii Brewster <milkii on Freenode IRC>
-maintaner="Milkii Brewster <milkii on Freenode IRC>"
-_pkgname="bjumblr.lv2"
+# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
+
+_name="BJumblr"
+_pkgname="${_name,,}.lv2"
+_plugin_uri="https://www.jahnichen.de/plugins/lv2/${_name}"
pkgname="${_pkgname}-git"
-pkgdesc="Pattern-controlled audio stream re-sequencer LV2 plugin"
-pkgver=r132.c004205
+pkgdesc="A pattern-controlled audio stream re-sequencer LV2 plugin (git version)"
+pkgver=1.4.0.r2.g9195f1b
pkgrel=1
-epoch=
-arch=(x86_64)
-url="https://github.com/sjaehn/BJumblr"
-license=(GPL)
-groups=()
-depends=('lv2')
-makedepends=()
-checkdepends=()
-optdepends=()
-provides=()
-conflicts=()
-replaces=()
-backup=()
-options=()
-install=
-changelog=
-source=("bjumblr.lv2::git+https://github.com/sjaehn/BJumblr")
-noextract=()
+arch=('x86_64')
+url="https://github.com/sjaehn/${_name}"
+license=('GPL3')
+groups=('lv2-plugins' 'pro-audio')
+depends=('cairo' 'gcc-libs' 'glibc' 'libsndfile' 'libx11')
+makedepends=('git' 'lv2')
+provides=("${_name,,}" "${_pkgname}")
+conflicts=("${_name,,}" "${_pkgname}")
+source=("${_pkgname}::git+https://github.com/sjaehn/${_name}")
md5sums=('SKIP')
+
pkgver() {
cd "$_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 "$_pkgname"
+ make
}
-build()
-{
- cd "$_pkgname"
- # ./configure --prefix=/usr
- make
+check() {
+ cd "${srcdir}/${_pkgname}"
+ # Ignore 'state:loadDefaultState not defined' error
+ lv2lint -t "Plugin State" -Mpack -I "${_name}.lv2/" "${_plugin_uri}"
}
package() {
- cd "$_pkgname"
- make PREFIX="/usr" DESTDIR="$pkgdir/" install
+ cd "$_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
}