blob: 46efd9d91d31ecbe6d0f41143a5958c54e2c0e34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: <castix at autistici dot org>
# Contributor: Christopher Arndt <aur -at- chrisarndt -dot de>
_pkgname=airwindows-lv2
pkgname=$_pkgname-git
pkgver=30.0.r2.g15b4540
pkgrel=1
pkgdesc="LV2 port of Airwindows audio plugins (git version)"
arch=(x86_64)
url='https://sr.ht/~hannes/airwindows-lv2'
license=(MIT)
groups=(lv2-plugins pro-audio)
depends=(glibc)
makedepends=(git lv2 meson)
provides=($_pkgname)
conflicts=($_pkgname)
source=("$_pkgname::git+https://git.sr.ht/~hannes/airwindows-lv2#branch=dev")
sha256sums=('SKIP')
pkgver() {
cd $_pkgname
local ver="$(grep -A 5 ^project meson.build | grep '^ *version:' | cut -d "'" -f 2)"
( set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/^v//;s/^release-//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
echo "$ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
)
}
build() {
meson setup \
--prefix=/usr \
--buildtype=release \
$_pkgname-build $_pkgname
meson compile -C $_pkgname-build
}
package() {
meson install -C $_pkgname-build --destdir "$pkgdir"
install -vDm 644 $_pkgname/{NOTES,README}.md \
-t "$pkgdir"/usr/share/doc/$pkgname
install -vDm 644 $_pkgname/LICENSE \
-t "$pkgdir"/usr/share/licenses/$pkgname
}
# vim:set ts=2 sw=2 et:
|