aboutsummaryrefslogtreecommitdiffstats
path: root/PKGBUILD
blob: 988a645ccb37ecdf8a8b76e90a88787db32a74ec (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
pkgname=dunst-git
pkgver=1.1.0.r18.gf8e1e33
pkgrel=1

pkgdesc="Customizable and lightweight notification-daemon"
url="http://www.knopwob.org/dunst"
arch=('i686' 'x86_64')
license=('BSD')

depends=('libxinerama' 'libxss' 'pango' 'libnotify' 'libxdg-basedir')
makedepends=('git' 'perl')

provides=('dunst' 'notification-daemon')
conflicts=('dunst')

source=('git://github.com/knopwob/dunst.git')

sha256sums=('SKIP')

pkgver() {
	cd dunst
	git describe --tags | sed -r 's/^v//; s/([^-]*-g)/r\1/; s/znc-//; s/-/./g'
}

build() {
	cd dunst
	make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
	make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 dunstify
}

package() {
	cd dunst
	make DESTDIR="${pkgdir}" PREFIX=/usr install

	install -Dm755 dunstify "$pkgdir"/usr/bin/dunstify
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}