mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-04 12:26:24 +02:00
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
64 lines
1.3 KiB
Text
64 lines
1.3 KiB
Text
# Contributor: Newbyte <newbie13xd@gmail.com>
|
|
# Maintainer: Newbyte <newbie13xd@gmail.com>
|
|
pkgname=amberol
|
|
pkgver=2025.1
|
|
pkgrel=0
|
|
pkgdesc="Plays music, and nothing else"
|
|
url="https://gitlab.gnome.org/World/amberol"
|
|
arch="all"
|
|
license="GPL-3.0-or-later"
|
|
depends="
|
|
gst-libav
|
|
gst-plugins-bad
|
|
gst-plugins-good
|
|
"
|
|
makedepends="
|
|
cargo
|
|
dbus-dev
|
|
desktop-file-utils
|
|
gmp-dev
|
|
gst-plugins-bad-dev
|
|
gst-plugins-base-dev
|
|
gstreamer-dev
|
|
libadwaita-dev
|
|
m4
|
|
meson
|
|
mpfr-dev
|
|
"
|
|
checkdepends="
|
|
bash
|
|
grep
|
|
"
|
|
subpackages="$pkgname-lang"
|
|
source="
|
|
https://gitlab.gnome.org/World/amberol/-/archive/$pkgver/amberol-$pkgver.tar.gz
|
|
no-cargo-home.patch
|
|
"
|
|
options="net" # needed for downloading dependencies
|
|
|
|
export CARGO_FEATURE_USE_SYSTEM_LIBS=1 # gmp-mpfr-sys links to gmp-dev and mpfr-dev
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
abuild-meson \
|
|
. output
|
|
meson compile -C output
|
|
}
|
|
|
|
check() {
|
|
meson test --print-errorlogs -C output
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
}
|
|
|
|
sha512sums="
|
|
97f703dbe6f3c22c796243f16fbfaf67b9c92f03ba5a2891f517c2114559c25616272c9e03cb8a71ce1021075ac1f8bb6f23f9252b713453f9059dff81c551fd amberol-2025.1.tar.gz
|
|
2c4b7433f27b18bbb428bdc2053cda53f10e958a2045499ab7af6102df9610822cf36a82636cd5b9501ba4e204aeddc18fcdb79aff773657a9a5a3c1aeba8e95 no-cargo-home.patch
|
|
"
|