blob: a7e0414624583baf3227a1e55b17c009872c6e27 (
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
50
51
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer:
pkgname=ncmpc
pkgver=0.28
pkgrel=2
pkgdesc="Fully featured MPD client using ncurses"
url="http://www.musicpd.org/clients/ncmpc/"
arch="all"
license="GPL2"
depends=""
depends_dev=""
makedepends="ncurses-dev glib-dev libmpdclient-dev meson"
install=""
subpackages="$pkgname-doc $pkgname-lang $pkgname-dbg"
source="http://www.musicpd.org/download/${pkgname}/0/${pkgname}-${pkgver}.tar.xz
0001-Make-lyrics_plugin_dir-configurable-again.patch
0002-mpdclient-check-source-again-after-mpd_glib_leave.patch"
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
}
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="d5cf890fc72b3c8c3391ddbcae49d494d9504eb237dcef1277b3b34eaecdce20611b1a874a2d248722b66e932a0ec7ace5bedc0dafbb0afe0d3476d4af520e0c ncmpc-0.28.tar.xz
3e04693161caa14d7e470241fd1c965767eea71cda5a67a029a9ddf75aefd80848ea582a0bc85e8b304b8e1272ad4b5404d369053fab03da59557a4ac42a9e99 0001-Make-lyrics_plugin_dir-configurable-again.patch
a297ca0c2da1ebcaa01af8c2c211f9d99529891cb8c9dfb28eaf169186330b83d9a4120006e91bc2c0c272313501d4fd4812c9df707a8c03d6dace1b7fb469c5 0002-mpdclient-check-source-again-after-mpd_glib_leave.patch"
|