summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ce9ad7da23bd920937af1a14af16325b43570882 (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
pkgname=libmpd-git
pkgver=r427.8601a0e
pkgrel=2
pkgdesc="Signal based wrapper around libmpdclient"
arch=('i686' 'x86_64')
url="http://mpd.wikia.com/wiki/ClientLib:libmpd"
license=('GPL')
depends=('glib2')
makedepends=('git')
conflicts=('libmpd')
provides=('libmpd')

source=($pkgname::git+https://github.com/DaveDavenport/libmpd.git)

md5sums=(SKIP)

pkgver() {
    cd "$pkgname"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "$pkgname"

    ./autogen.sh
    ./configure --prefix=/usr
    make
}

package() {
    cd "$pkgname"
    make DESTDIR="$pkgdir" install
}