summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c11f2c20fdb2371c18379da2832940e67b9569fc (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
# Maintainer: Colin Reeder <colin AT reederhome DOT net>
pkgname=pa-applet-git
pkgver=17.33b413b
pkgrel=1
pkgdesc="PulseAudio control applet"
arch=(i686 x86_64)
url="https://github.com/fernandotcl/pa-applet"
license=('BSD')
depends=('gtk3' 'libnotify' 'libpulse')
makedepends=('git')
options=('!libtool')

source=("$pkgname"::'git://github.com/fernandotcl/pa-applet.git')
md5sums=('SKIP')

pkgver() {
	    cd "$pkgname"
	        echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
	cd "$srcdir/$pkgname"
	CFLAGS+=" -Wno-error"
	./autogen.sh
	./configure --prefix=/usr
	make
}

package() {
	cd "$srcdir/$pkgname"
	make DESTDIR="$pkgdir/" install
	install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}