aur/PKGBUILD

66 lines
1.4 KiB
Bash
Raw Normal View History

2015-07-11 19:19:24 +02:00
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>
# Contributor: speps <speps at aur dot archlinux dot org>
_pkgname=lv2
pkgname=$_pkgname-git
pkgver=1.18.8.r1419.bd69ed7
2015-07-11 19:19:24 +02:00
pkgrel=1
2022-07-23 16:23:31 +02:00
pkgdesc='Plugin standard for audio systems (git version)'
arch=(i686 x86_64)
url='http://lv2plug.in/'
license=(ISC)
makedepends=(
asciidoc
codespell
doxygen
flake8
git
libsndfile
meson
pygmentize
python-black
python-lxml
python-markdown
python-pygments
python-pylint
python-rdflib
serd
sord
)
optdepends=(
'sord: for lv2_validate'
'libsndfile: for eg-sampler.lv2'
'python-lxml: for lv2specgen.py'
'python-markdown: for lv2specgen.py'
'python-pygments: for lv2specgen.py'
'python-rdflib: for lv2specgen.py'
)
provides=($_pkgname "${_pkgname}=${pkgver//.r*/}")
conflicts=($_pkgname)
source=("${_pkgname}::git+https://gitlab.com/lv2/lv2.git")
sha256sums=('SKIP')
2015-07-11 19:19:24 +02:00
2015-07-11 19:19:24 +02:00
pkgver() {
2022-07-23 16:23:31 +02:00
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)
2015-07-11 19:19:24 +02:00
}
2022-07-23 16:23:31 +02:00
build() {
arch-meson $_pkgname $_pkgname-build
meson compile -C $_pkgname-build
}
2015-07-11 19:19:24 +02:00
2022-07-23 16:23:31 +02:00
check() {
meson test -C $_pkgname-build
2015-07-11 19:19:24 +02:00
}
package() {
2022-07-23 16:23:31 +02:00
meson install -C $_pkgname-build --destdir "$pkgdir"
install -vDm 644 $_pkgname/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname
install -vDm 644 $_pkgname/README.md -t "$pkgdir"/usr/share/doc/$pkgname
2015-07-11 19:19:24 +02:00
}