summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 591c2f78dde5e03bbdfda776ab7a1ea86b278781 (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
40
41
42
43
44
45
46
47
48
# Maintainer: Jefferson Gonzalez <jgmdev@gmail.com>
# Contributor: Christian Hesse <mail@eworm.de>
# Contributor: Zbyszek Tokarczyk <ztokarczyk (at) Gmail.com>

pkgname=xfce4-notifyd-git
pkgver=0.9.6.r20.gc3c3fac
pkgrel=1
pkgdesc='notification daemon for the xfce desktop - git checkout'
arch=('i686' 'x86_64')
license=('GPL')
url='http://goodies.xfce.org/projects/applications/xfce4-notifyd'
groups=('xfce4-goodies')
depends=('libxfce4ui' 'hicolor-icon-theme')
makedepends=('xfce4-dev-tools' 'exo' 'intltool' 'git')
conflicts=('xfce4-notifyd')
provides=('notification-daemon' 'xfce4-notifyd')
options=('!libtool')
install=${pkgname}.install
source=('git+https://gitlab.xfce.org/apps/xfce4-notifyd.git')
sha256sums=('SKIP')

pkgver() {
	cd xfce4-notifyd/

	if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then
		echo "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG}).r$(git rev-list --count ${GITTAG}..).g$(git log -1 --format="%h")"
	else
		echo "0.r$(git rev-list --count master).g$(git log -1 --format="%h")"
	fi
}

build() {
	cd xfce4-notifyd/

	./autogen.sh \
		--prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib/xfce4 \
		--localstatedir=/var \
		--disable-static
	make
}

package() {
	cd xfce4-notifyd/

	make DESTDIR=${pkgdir} install
}