mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 12:54:32 +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
52 lines
1.1 KiB
Text
52 lines
1.1 KiB
Text
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer: team/gnome <fossdd@pwned.life>
|
|
pkgname=totem-pl-parser
|
|
pkgver=3.26.6
|
|
pkgrel=5
|
|
pkgdesc="GNOME playlist parser library"
|
|
url="https://www.gnome.org/"
|
|
arch="all"
|
|
license="LGPL-2.0-or-later"
|
|
makedepends="
|
|
gmime-dev
|
|
gobject-introspection-dev
|
|
itstool
|
|
json-glib-dev
|
|
libarchive-dev
|
|
libgcrypt-dev
|
|
libxml2-dev
|
|
libxml2-utils
|
|
libxslt
|
|
meson
|
|
"
|
|
options="!check" # doesn't detect gvfs' http support
|
|
subpackages="$pkgname-dev $pkgname-lang"
|
|
source="https://download.gnome.org/sources/totem-pl-parser/${pkgver%.*}/totem-pl-parser-$pkgver.tar.xz"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
# Patch out -Werror= cflags
|
|
sed "/'-Werror=/d" -i meson.build
|
|
}
|
|
|
|
build() {
|
|
export CFLAGS="$CFLAGS -Wno-error"
|
|
abuild-meson \
|
|
-Denable-libarchive=yes \
|
|
-Denable-libgcrypt=yes \
|
|
-Dintrospection=true \
|
|
build
|
|
meson compile -C build
|
|
}
|
|
|
|
check() {
|
|
meson test --print-errorlogs -C build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C build
|
|
}
|
|
|
|
sha512sums="
|
|
1a7aa69e147b55c3c9761328604821a7e40bac4e7b82492e5ce1b2405e3b6d5154e3b06687f2446ec923b34bf6ea96eef179ef8410c005a061d448fc6b3e754e totem-pl-parser-3.26.6.tar.xz
|
|
"
|