updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / bisho-git / PKGBUILD
blob6db4093db8842c884a8e473117301450f147501f
1 # Maintainer: Andrea Scarpino <andrea@archlinux.org>
3 pkgname=bisho-git
4 pkgver=20110303
5 pkgrel=1
6 pkgdesc="Provides access to the social web services from the MyZone"
7 arch=('i686' 'x86_64')
8 url="http://meego.com"
9 license=('GPL')
10 groups=('meego')
11 depends=('meego-gnome-control-center-git' 'libsocialweb')
12 makedepends=('git' 'intltool')
13 provides=('bisho')
14 conflicts=('bisho')
15 options=('!libtool')
16 install=bisho.install
18 _gitroot="git://gitorious.org/meego-netbook-ux/bisho.git"
19 _gitname="bisho"
21 build() {
22   cd "$srcdir"
23   msg "Connecting to GIT server...."
25   if [ -d $_gitname ] ; then
26     cd $_gitname && git pull origin
27     msg "The local files are updated."
28   else
29     git clone $_gitroot $_gitname
30   fi
32   msg "GIT checkout done or server timeout"
33   msg "Starting make..."
35   rm -rf "$srcdir/$_gitname-build"
36   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37   cd "$srcdir/$_gitname-build"
39   ./autogen.sh
40   ./configure --prefix=/usr \
41     --sysconfdir=/etc
42   make
45 package() {
46   cd "$srcdir/$_gitname-build"
47   make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="$pkgdir/" install
49   install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
50   gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/bisho.schemas" \
51     --domain bisho ${pkgdir}/etc/gconf/schemas/*.schemas
52   rm -f ${pkgdir}/etc/gconf/schemas/*.schemas