updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / gio-sharp-git / PKGBUILD
blob63d263e0aa19d6b0077833318ccf650ce43f7ba1
1 # Maintainer: oke3 < Sekereg [at] gmx [dot] com >
2 # Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com>
4 pkgname=gio-sharp-git
5 pkgver=20120109
6 pkgrel=1
7 pkgdesc="a branch of the official gtk-sharp/gio to get gio-sharp building on gtk-sharp 2.12"
8 url="http://github.com/mono/gio-sharp"
9 arch=('any')
10 license=('custom')
11 depends=('gtk-sharp-2')
12 makedepends=('git' 'pkgconfig' 'autoconf')
13 conflicts=('gio-sharp')
14 provides=('gio-sharp')
15 options=('!libtool' '!makeflags')
17 _gitroot="git://github.com/mono/gio-sharp.git"
18 _gitname="gio-sharp"
20 build() {
21     cd "$srcdir"
23     msg "Connecting to GIT server...."
25     if [[ -d "$_gitname" ]]; then
26         cd "$_gitname" && git pull origin
27     else
28         git clone "$_gitroot" "$_gitname"
29     fi
31     msg "GIT checkout done or server timeout"
32     msg "Starting build..."
34     rm -rf "$srcdir/$_gitname-build"
35     git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36     cd "$srcdir/$_gitname-build"
38     ./autogen-2.22.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var
40     make
43 package() {
44     cd "$srcdir/$_gitname-build"
46     make DESTDIR="$pkgdir" install
48     install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
49     install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"