summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Arndt2020-09-14 23:01:37 +0200
committerChristopher Arndt2020-09-14 23:01:37 +0200
commitb67f4a6dd51c8e24c6741a62350a9e35f4aaf9d8 (patch)
tree1be00fe33510af06ac91886383bd6563e2828be6
parenta152a6164a5b77f58b334c96b33e1f8e3627de9a (diff)
downloadaur-bsequencer-git.tar.gz
Various PKGBUILD improvements as for other B.* packages
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
-rw-r--r--.SRCINFO21
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD66
3 files changed, 51 insertions, 41 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d5e9ee6d91b..5bad3377efd 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,23 @@
pkgbase = bsequencer-git
- pkgdesc = Multi channel MIDI step sequencer LV2 plugin.
- pkgver = r82.c4dd235
+ pkgdesc = Multi channel MIDI step sequencer LV2 plugin (git version)
+ pkgver = 1.8.0.r0.g8f96f92
pkgrel = 1
url = https://github.com/sjaehn/BSEQuencer
arch = x86_64
- license = GPL
- depends = xorg-server
+ groups = lv2-plugins
+ groups = pro-audio
+ license = GPL3
+ checkdepends = lv2lint
+ makedepends = git
+ makedepends = lv2
depends = cairo
- depends = lv2
- source = git+https://github.com/sjaehn/BSEQuencer
+ depends = gcc-libs
+ depends = glibc
+ depends = libx11
+ provides = bsequencer
+ provides = bsequencer=1.8.0
+ conflicts = bsequencer
+ source = bsequencer::git+https://github.com/sjaehn/BSEQuencer
md5sums = SKIP
pkgname = bsequencer-git
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..00647da407e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+bsequencer/
+bsequencer-git-*.pkg.tar.xz
+bsequencer-git-*.pkg.tar.zst
+pkg/
+src/ \ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
index 0d566ad74ab..40a13787266 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,52 +1,48 @@
# Maintainer: Milk Brewster (milk on freenode irc)
-pkgname=bsequencer-git
-pkgver=r82.c4dd235
+# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
+
+_name="BSEQuencer"
+_pkgname="${_name,,}"
+_plugin_uri="https://www.jahnichen.de/plugins/lv2/${_name}"
+pkgname="${_pkgname}-git"
+pkgdesc="Multi channel MIDI step sequencer LV2 plugin (git version)"
+pkgver=1.8.0.r0.g8f96f92
pkgrel=1
-epoch=
-pkgdesc="Multi channel MIDI step sequencer LV2 plugin."
arch=('x86_64')
-url="https://github.com/sjaehn/BSEQuencer"
-license=('GPL')
-groups=()
-depends=('xorg-server' 'cairo' 'lv2')
-makedepends=()
-checkdepends=()
-optdepends=()
-provides=()
-conflicts=()
-replaces=()
-backup=()
-options=()
-install=
-changelog=
-source=("git+https://github.com/sjaehn/BSEQuencer")
-noextract=()
+url="https://github.com/sjaehn/${_name}"
+license=('GPL3')
+groups=('lv2-plugins' 'pro-audio')
+depends=('cairo' 'gcc-libs' 'glibc' 'libx11')
+makedepends=('git' 'lv2')
+checkdepends=('lv2lint')
+provides=("${_pkgname}" "${_pkgname}=${pkgver//.r*/}")
+conflicts=("${_pkgname}")
+source=("${_pkgname}::git+https://github.com/sjaehn/${_name}")
md5sums=('SKIP')
-validpgpkeys=()
-# prepare() {
-# }
pkgver() {
- cd "$srcdir"/BSEQuencer
+ 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/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
- }
-
+}
build() {
- cd "$srcdir"/BSEQuencer
+ cd "${srcdir}/${_pkgname}"
make
}
-
-# check() {
- # cd "$pkgname-$pkgver"
- # make -k check
-# }
+
+check() {
+ cd "${srcdir}/${_pkgname}"
+ lv2lint -Mpack -I "${_name}.lv2/" "${_plugin_uri}"
+}
package() {
- cd "$srcdir"/BSEQuencer
- make install PREFIX="${pkgdir}/usr/" 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
}