mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 04:44:57 +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
83 lines
1.9 KiB
Text
83 lines
1.9 KiB
Text
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=appstream-glib
|
|
pkgver=0.8.3
|
|
pkgrel=0
|
|
pkgdesc="Library for AppStream metadata"
|
|
url="https://people.freedesktop.org/~hughsient/appstream-glib/"
|
|
arch="all"
|
|
license="LGPL-2.0-or-later"
|
|
depends="gsettings-desktop-schemas"
|
|
makedepends="
|
|
curl-dev
|
|
fontconfig-dev
|
|
freetype-dev
|
|
gdk-pixbuf-dev
|
|
glib-dev
|
|
gobject-introspection-dev
|
|
gperf
|
|
gtk+3.0-dev
|
|
json-glib-dev
|
|
libarchive-dev
|
|
libgcab-dev
|
|
meson
|
|
yaml-dev
|
|
"
|
|
subpackages="
|
|
$pkgname-dbg
|
|
$pkgname-dev
|
|
$pkgname-doc
|
|
$pkgname-lang
|
|
$pkgname-builder
|
|
$pkgname-bash-completion:bashcomp:noarch
|
|
"
|
|
source="https://people.freedesktop.org/~hughsient/appstream-glib/releases/appstream-glib-$pkgver.tar.xz"
|
|
|
|
build() {
|
|
abuild-meson \
|
|
-Db_lto=true \
|
|
-Ddep11=true \
|
|
-Dbuilder=true \
|
|
-Drpm=false \
|
|
-Dalpm=false \
|
|
-Dfonts=true \
|
|
-Dman=true \
|
|
-Dgtk-doc=false \
|
|
-Dintrospection=true \
|
|
output
|
|
meson compile -C output
|
|
}
|
|
|
|
check() {
|
|
meson test --print-errorlogs -C output
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
|
|
# Remove installed tests
|
|
rm -rf "$pkgdir"/usr/share/installed-tests/appstream-glib
|
|
}
|
|
|
|
builder() {
|
|
pkgdesc="Library and command line tools for building AppStream metadata"
|
|
mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/usr/lib \
|
|
"$subpkgdir"/usr/share/bash-completion/completions
|
|
mv "$pkgdir"/usr/bin/appstream-builder "$subpkgdir"/usr/bin/
|
|
mv "$pkgdir"/usr/share/bash-completion/completions/appstream-builder \
|
|
"$subpkgdir"/usr/share/bash-completion/completions/
|
|
mv "$pkgdir"/usr/lib/asb-plugins-5 \
|
|
"$subpkgdir"/usr/lib/
|
|
}
|
|
|
|
bashcomp() {
|
|
depends=""
|
|
pkgdesc="Bash completions for $pkgname"
|
|
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
|
|
|
|
amove usr/share/bash-completion/completions
|
|
}
|
|
|
|
sha512sums="
|
|
df4247b710cf234eef037f5f7be6be4872638d0686becd65e10e6a4214b0dd1b48ffbbd69179f3fb9777373926840d5b776e20a41ce11d4926114345944db127 appstream-glib-0.8.3.tar.xz
|
|
"
|