summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Arndt2020-08-18 15:55:31 +0200
committerChristopher Arndt2020-08-18 15:55:31 +0200
commit2f16f3682348612d271c6b435ff0cb9d138a848b (patch)
tree092ef3838ea7c0e915e95e9856cf6ab68315befd
parent74a1e71e176895939d55677785fc8419e5fbd2c5 (diff)
downloadaur-2f16f3682348612d271c6b435ff0cb9d138a848b.tar.gz
Various PKGBUILD improvements & fixes
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
-rw-r--r--.SRCINFO20
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD64
3 files changed, 53 insertions, 36 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 543382f0be0..b8b477c2f66 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,23 @@
pkgbase = bjumblr.lv2-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
url = https://github.com/sjaehn/BJumblr
arch = x86_64
- license = GPL
- depends = lv2
+ groups = lv2-plugins
+ groups = pro-audio
+ license = GPL3
+ makedepends = git
+ makedepends = lv2
+ depends = cairo
+ depends = gcc-libs
+ depends = glibc
+ depends = libsndfile
+ depends = libx11
+ provides = bjumblr
+ provides = bjumblr.lv2
+ conflicts = bjumblr
+ conflicts = bjumblr.lv2
source = bjumblr.lv2::git+https://github.com/sjaehn/BJumblr
md5sums = SKIP
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..50a4258e30f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+bjumblr.lv2/
+bjumblr.lv2-git-*.pkg.tar.xz
+bjumblr.lv2-git-*.pkg.tar.zst
+pkg/
+src/ \ No newline at end of file
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
}