blob: 853adf00ba814db846862de67c4fc5259b129936 (
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
47
48
49
50
51
52
53
54
55
56
|
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>
_pkgname=suil
pkgname="$_pkgname-git"
pkgver=0.10.16.r414.78bf2c7
pkgrel=2
pkgdesc='Lightweight C library for loading and wrapping LV2 plugin UIs (git version)'
arch=(x86_64)
url='http://drobilla.net/software/suil/'
license=(ISC)
makedepends=(
doxygen
git
gtk2
gtk3
lv2
meson
python
python-sphinx
python-sphinx-lv2-theme
qt5-base
)
optdepends=('gtk2: GTK+ 2.x UI wrapping support'
'gtk3: GTK+ 3.x UI wrapping support'
'qt5-base: Qt 5.x UI wrapping support')
provides=($_pkgname "$_pkgname=${pkgver//.r*/}" $_pkgname-docs)
conflicts=($_pkgname $_pkgname-svn)
source=("$_pkgname::git+https://gitlab.com/lv2/$_pkgname.git")
md5sums=('SKIP')
pkgver() {
cd $_pkgname
local ver=$(grep -E "^\s+version: '[0-9]+\.[0-9]+\.[0-9]+'" meson.build | cut -d "'" -f 2)
echo $ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
build() {
arch-meson $_pkgname $_pkgname-build -Dcocoa=disabled
meson compile -C $_pkgname-build
}
# project has no tests (yet?)
#check() {
# meson test -C $_pkgname-build
#}
package() {
provides+=(libsuil-0.so)
meson install -C $_pkgname-build --destdir "$pkgdir"
# license
install -vDm 644 $_pkgname/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname
# documentation
mv -v "$pkgdir"/usr/share/doc/{$_pkgname-0,$pkgname}
rm "$pkgdir"/usr/share/doc/$pkgname/{single,}html/.buildinfo
install -vDm 644 $_pkgname/{AUTHORS,NEWS,README.md} -t "$pkgdir"/usr/share/doc/$pkgname
}
|