summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8823053bfea8e993167be30fcf66ad6f99b35ab6 (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
# Maintainer: Nikos Fytilis <n-fit \at\ live \dot\ com>
# Contributor: zoulnix <http://goo.gl/HQaP>
pkgname=g15mpd
pkgver=1.0.0
pkgrel=3
pkgdesc="A simple frontend for the Media Player Daemon, for use with G15Daemon."
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/g15daemon/files/g15mpd/"
license=('GPL')
depends=('g15daemon' 'libmpd' 'libxtst')
makedepends=('autoconf' 'automake' 'gcc' 'libtool' 'make' 'patch' 'pkg-config')
options=('!libtool')
source=(http://downloads.sourceforge.net/g15daemon/${pkgname}-${pkgver}.tar.bz2 \
	${pkgname}-libmpdheader.patch)
md5sums=('20f44c69b121750c27879e04c2cdff60' '6392a59672f0b737535a9bcf04ba49a0')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}

  # apply patches...
  patch -Np1 -i ../${pkgname}-libmpdheader.patch || return 1
  # Generating build system
  sh autogen.sh || return 1

  ./configure --prefix=/usr \
	      --sysconfdir=/etc \
	      --localstatedir=/var \
	      --disable-static

  sed 's/-lmpd/-lmpd -pthread/' -i Makefile
  make LDLIBS='-lpthread' || return 1
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}

  make DESTDIR=${pkgdir} install || return 1
}