updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / geh-git / PKGBUILD
blob002429e577e67e364fca0e172c1717a3e3dd39b1
1 # Maintainer:  TDY <tdy@gmx.com>
2 # Contributor: Xilon <xilonmu@gmail.com>
4 pkgname=geh-git
5 pkgver=20090822
6 pkgrel=1
7 pkgdesc="A simple image viewer and background setter"
8 arch=('i686' 'x86_64')
9 url="http://pekwm.org/projects/5/"
10 license=('MIT')
11 depends=('gtk2>=2.8.0')
12 makedepends=('git' 'pkgconfig>=0.16')
13 provides=('geh')
14 conflicts=('geh')
16 _gitname=geh
17 _gitroot=http://projects.pekdon.net/git/geh.git
19 build() {
20   cd "$srcdir"
22   if [[ -d $_gitname ]]; then
23     cd $_gitname && git pull origin && cd ..
24   else
25     git clone $_gitroot
26   fi
27   
28   rm -rf $_gitname-build
29   git clone $_gitname $_gitname-build
30   cd $_gitname-build
32   sed -n '2,22 s/ \*[ ]*//p' src/main.c > license.txt
33   ./autogen.sh && ./configure --prefix=/usr
34   make || return 1
35   make DESTDIR="$pkgdir" install
36   install -Dm644 license.txt "$pkgdir/usr/share/licenses/$pkgname/license.txt"