summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 249b697a96ce06052afeb9a9b922742e4c280c55 (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
# Maintainer: Robin Candau <antiz@archlinux.org>
# Contributor: Julia <julia[at]insertdomain[dot]name>
# Contributor: Colin Reeder <colin[at]reederhome[dot]net>
# Contributor: Abraham Levine <arc[at]plusreed[dot]com>

pkgname=pa-applet-git
_pkgname="${pkgname%-git}"
pkgver=r19.3b4f8b3
pkgrel=8
pkgdesc="PulseAudio control applet"
arch=('i686' 'x86_64' 'aarch64')
url="https://github.com/fernandotcl/pa-applet"
license=('BSD')
depends=('gtk3' 'libnotify' 'libpulse')
makedepends=('git')
options=('!libtool')
source=("git+${url}.git")
sha256sums=('SKIP')

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

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

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

        install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
	install -Dm 644 README "${pkgdir}/usr/share/doc/${_pkgname}/README"
}