aports/community/lilv/APKBUILD
Sertonix 6bd45b53fb */*: remove --no-rebuild from meson test
meson 1.7.0 and later don't include test build targets in the default
build target. With --no-rebuild the test targets aren't build at all.
Removing --no-rebuild shouldn't cause any false rebuilds since the files
aren't changed between the build() and check() step.

Fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/16891
Ref https://github.com/mesonbuild/meson/pull/10413
2025-05-09 20:48:14 +00:00

58 lines
1.4 KiB
Text

# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=lilv
pkgver=0.24.26
pkgrel=0
pkgdesc="C library for simpler use of LV2 plugins"
url="https://drobilla.net/software/lilv"
arch="all"
license="ISC"
makedepends="
libsndfile-dev
lv2-dev
meson
serd-dev
sord-dev
sratom-dev
zix-dev
"
subpackages="
$pkgname-dev
$pkgname-libs
py3-$pkgname-pyc
py3-$pkgname:py3:noarch
$pkgname-doc
$pkgname-bash-completion
"
source="https://download.drobilla.net/lilv-$pkgver.tar.xz
python-lib.patch
"
build() {
abuild-meson -Db_lto=true . output
meson compile -C output
}
check() {
meson test --print-errorlogs -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
mkdir -p "$pkgdir"/usr/share/bash-completion/completions
mv "$pkgdir"/etc/bash_completion.d/lilv \
"$pkgdir"/usr/share/bash-completion/completions/
rmdir "$pkgdir"/etc/bash_completion.d
python3 -m compileall -fq "$pkgdir"/usr/lib/python*
}
py3() {
pkgdesc="$pkgdesc (python module)"
depends="$pkgname-libs=$pkgver-r$pkgrel"
amove usr/lib/python*
}
sha512sums="
3d360d63391554f62d1dd44b9ba0fc28e4ccde9640da1e28ef3f127c23c9f03974b66c5bbb83f022f18810284a0e25060127d580ca2fad6213fe88920618c2ae lilv-0.24.26.tar.xz
59ad0b3129ebc6042d168a44276ccd121fd19c1a314a65d7594629f6733f96ebfa270dfcf828084f05001f05e6dd92cfa6079aa1e2eddcbcc1a2ecb48120e8ad python-lib.patch
"