summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2735bcb15fbb02554a5473a8f1f56dfbb08015ec (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
#Maintainer: Christian Hesse <mail@eworm.de>
#Contributor: Gergely Imreh <imrehg(at)gmail(dot)com>

pkgname=giggle-git
pkgver=0.5.r289.g44490f7
pkgrel=1
pkgdesc='A graphical frontend for the git directory tracker - git checkout'
arch=('i686' 'x86_64')
url='http://live.gnome.org/giggle'
license=('GPL')
depends=('git' 'gtksourceview3' 'vte3')
options=(!libtool)
install=giggle.install
provides=('giggle')
conflicts=('giggle')
source=('git://git.gnome.org/giggle')
sha256sums=('SKIP')

pkgver() {
	cd giggle/

	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 giggle/

	./autogen.sh
	./configure --prefix=/usr
	make
}

package() {
	cd giggle/

	make prefix=${pkgdir}/usr install
	# this file shouldn't be here
	rm ${pkgdir}/usr/share/icons/hicolor/icon-theme.cache
}