mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-10 17:50:27 +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
42 lines
1.2 KiB
Text
42 lines
1.2 KiB
Text
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
|
|
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
|
|
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
|
|
pkgname=ncmpc
|
|
pkgver=0.52
|
|
pkgrel=0
|
|
pkgdesc="Ncurses client for the Music Player Daemon (MPD)"
|
|
url="https://www.musicpd.org/clients/ncmpc"
|
|
arch="all"
|
|
license="GPL-2.0-or-later"
|
|
makedepends="glib-dev libmpdclient-dev meson ncurses-dev py3-sphinx
|
|
lirc-dev pcre2-dev fmt-dev"
|
|
subpackages="$pkgname-doc $pkgname-lang $pkgname-dbg"
|
|
source="https://www.musicpd.org/download/ncmpc/0/ncmpc-$pkgver.tar.xz"
|
|
|
|
build() {
|
|
LDFLAGS="$LDFLAGS -lintl" \
|
|
abuild-meson \
|
|
-Dlirc=enabled \
|
|
-Dcurses=ncurses \
|
|
-Dlyrics_screen=true \
|
|
-Dlyrics_plugin_dir=/usr/share/$pkgname/lyrics \
|
|
-Dhtml_manual=false \
|
|
. 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/$pkgname/lyrics
|
|
install -m755 lyrics/* \
|
|
"$pkgdir"/usr/share/$pkgname/lyrics
|
|
}
|
|
|
|
sha512sums="
|
|
bc3eaef9e1d8e760578fbcc10f26a62cafc6d94ceed07457ffc7cacdc2f49c13910acd8265b5b574d295cd54c4c7b391a2824493ea47967a2702c908e415c17d ncmpc-0.52.tar.xz
|
|
"
|