summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2324285d2f62a78b0b48736e5ed77a2732ceeee0 (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
# Maintainer: Lancia Greggori <lanciagreggori@gmail.com>
pkgname='herbe-git'
pkgver='1.0.0.r10.gdec89e4'
pkgrel='2'
pkgdesc='Daemon-less notifications without D-Bus'
arch=('x86_64')
url='https://github.com/dudik/herbe'
license=('MIT')
depends=('libx11' 'libxft')
makedepends=('git')
provides=('herbe')
conflicts=('herbe')
source=("$pkgname::git+$url")
md5sums=('SKIP')

pkgver() {
	cd "$pkgname"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$pkgname"
	make clean all
}

package() {
	cd "$pkgname"
	make PREFIX='/usr' DESTDIR="$pkgdir/" install
	install -D -m 644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}