summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 02296bf77005ea7a748b88babae6281e175804d2 (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
# Maintainer: SanskritFritz (gmail)
# Contributor: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=libdesktop-agnostic-git
_gitname=libdesktop-agnostic
pkgver=2016.05.02
pkgrel=2
pkgdesc='Provides an extensible config API, a unified virtual fs API, and a desktop item editor for GLib-based projects.'
arch=('i686' 'x86_64')
url='https://github.com/p12tic/libdesktop-agnostic'
license=('GPL' 'LGPL')
depends=('pygtk')
makedepends=('git' 'intltool' 'vala' 'gobject-introspection' 'gconf')
optdepends=('gconf: gconf configuration backend')
conflicts=('libdesktop-agnostic')
provides=('libdesktop-agnostic')
backup=("etc/xdg/libdesktop-agnostic/desktop-agnostic.ini")
source=("git+https://github.com/p12tic/libdesktop-agnostic.git")
md5sums=('SKIP')

pkgver() {
	cd "$_gitname"
	git log -1 --format="%cd" --date=short | sed 's|-|.|g'
}

build() {
	cd "$srcdir/$_gitname"

	export PYTHON=/usr/bin/python2
	python2 ./waf configure --prefix=/usr --sysconfdir=/etc \
		--config-backends=gconf,keyfile \
		--vfs-backends=gio \
		--desktop-entry-backends=gio,glib
	python2 ./waf
}

package() {
	cd "$srcdir/$_gitname"

	python2 ./waf install --destdir="$pkgdir"
}