aboutsummaryrefslogtreecommitdiffstats
path: root/community/ncmpc/APKBUILD
blob: cd56554d209ed1d7e183dccc0dfa67c192031962 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# 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.29
pkgrel=2
pkgdesc="Fully featured MPD client using ncurses"
url="https://www.musicpd.org/clients/ncmpc/"
arch="all"
license="GPL-2.0"
makedepends="ncurses-dev glib-dev libmpdclient-dev meson"
subpackages="$pkgname-doc $pkgname-lang $pkgname-dbg"
source="http://www.musicpd.org/download/$pkgname/0/$pkgname-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=release \
		-Dcurses=ncurses \
		-Dlyrics_screen=true \
		-Dlyrics_plugin_dir=share/$pkgname/lyrics \
		. output
	ninja -C output
}

check() {
	cd "$builddir"
	./output/ncmpc --help > /dev/null
}

package() {
	cd "$builddir"
	DESTDIR="$pkgdir" ninja -C output install

	mkdir -p "$pkgdir"/usr/share/$pkgname/lyrics
	install -m755 lyrics/* \
		"$pkgdir"/usr/share/$pkgname/lyrics

	mkdir -p "$pkgdir"/usr/share/licenses/$pkgname/
	mv "$pkgdir"/usr/share/doc/$pkgname/COPYING \
		"$pkgdir"/usr/share/licenses/$pkgname/
}

sha512sums="1ce6f0e8465f70f2f4b29613b95123f40d578e431e56505dd7acb2580d47882fe22f4307a387deb42b900fe934a7fda151b2212c0638c1f7409b426372b6957b  ncmpc-0.29.tar.xz"