updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / mpd-pausemode / PKGBUILD
blobcae23bca00c9c7ab4ea5224b3f02962a95a8dec2
1 # Contributor: Mildred <silkensedai@online.fr>
2 # kate: hl Bash; space-indent on; indent-width 2;
4 pkgname=mpd-pausemode
5 pkgver=0.1
6 pkgrel=2
7 pkgdesc="Daemon to pause MPD after each song"
8 arch=('i686' 'x86_64')
9 url="mailto:silkensedai@online.fr"
10 license=('MIT' 'BSD')
11 makedepends=(ftjam)
12 source=(Jamfile Jamconfig pausemode.c README \
13   http://www.musicpd.org/uploads/files/libmpdclient-0.13.0.tar.bz2)
14 md5sums=('16c1e64cf4b2f9e6d95210f6e7c3b589' '2c7e496dc46d3750c11172a178283e44'\
15          'add820382da50616cf78659b61afabf2' '83ad38e5bef7d5c7fa2f40131828f8a0'\
16          'b72b0a31b13629bb4e254e0f5ebe07e4')
17 noextract=()
18 # md5sum Jamfile Jamconfig pausemode.c libmpdclient-0.13.0.tar.bz2 | cut -d' ' -f1 | xargs
20 build() {
21   local libmpd="libmpdclient-0.13.0"
22   cd "$startdir/src"
23   echo "LIBMPD.DIR = $libmpd ;" >> Jamconfig
24   jam
25   head -n 20 pausemode.c | tail -n +2 > LICENCE
26   install -D mpd-pausemode "$startdir/pkg/usr/bin/mpd-pausemode"
27   install -D LICENCE "$startdir/pkg/usr/share/licenses/$pkgname/LICENCE"
28   install -D "$libmpd/COPYING" "$startdir/pkg/usr/share/licenses/$pkgname/COPYING"