blob: 1edce407c4750b0160527635ac6d51aa0a2fcd21 (
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
|
# Contributor: Rasi <rasi@xssn.at>
# Maintainer: aksr <aksr at t-com dot me>
pkgname=ncmpc-git
pkgver=0.29.283.g8bb65be
pkgrel=1
pkgdesc="A fully featured MPD client, which runs in a terminal (using ncurses)."
arch=('i686' 'x86_64')
url="http://www.musicpd.org/clients/ncmpc/"
license=('GPL')
depends=('ncurses' 'glib2' 'libmpdclient' 'python' 'expat')
makedepends=('git' 'meson')
conflicts=('ncmpc' 'ncmpc-svn')
source=("$pkgname::git+https://github.com/MusicPlayerDaemon/ncmpc.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
git describe --always | sed 's/^v//g;s|-|.|g'
}
prepare() {
cd "$srcdir/$pkgname"
sed -i 's!ncursesw/curses.h!curses.h!g' meson.build
sed -i 's!ncursesw/curses.h!curses.h!g' src/ncmpc_curses.h
}
build() {
cd "$srcdir/$pkgname"
meson --prefix /usr . output
meson configure -Dartist_screen=true \
-Dchat_screen=true \
-Dcolors=auto \
-Dhelp_screen=true \
-Dkey_screen=true \
-Dlyrics_screen=true \
-Dmouse=true \
-Doutputs_screen=true \
-Dsearch_screen=true \
-Dsong_screen=true output
}
package() {
cd "$srcdir/$pkgname"
DESTDIR=$pkgdir ninja -C output install
rm $pkgdir/usr/share/doc/${pkgname%-*}/{AUTHORS,COPYING,NEWS}
install -Dm644 COPYING $pkgdir/usr/share/licenses/${pkgname%-*}/COPYING
}
|