updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / minbif-git / PKGBUILD
blob1514e7cbb885533fb42eed77c051c2bf5ff39277
1 # Contributor: Brandon Hartshorn <sharntehnub@gmail.com>
2 pkgname=minbif-git
3 pkgver=20091024
4 pkgrel=1
5 pkgdesc="Uses libpurple from Pidgin to interface with IRC - similar to bitlbee"
6 arch=('i686')
7 url="http://symlink.me/wiki/minbif"
8 license=('GPL')
9 depends=('pidgin' 'libcaca')
10 makedepends=('git' 'cmake')
11 provides=('minbif')
12 conflicts=()
13 replaces=()
14 backup=()
15 options=()
16 install=${pkgname}.install
17 #source=(arch.patch)
18 noextract=()
19 #md5sums=('3a2edaee8035db3f4391b31df2318a47') #generate with 'makepkg -g'
21 _gitroot="git://git.symlink.me/pub/romain/minbif.git"
22 _gitname="minbif"
24 build() {
25   cd "$srcdir"
26   msg "Connecting to GIT server...."
28   if [ -d $_gitname ] ; then
29     cd $_gitname && git pull origin
30     msg "The local files are updated."
31   else
32     git clone $_gitroot
33   fi
35   msg "GIT checkout done or server timeout"
36   msg "Starting make..."
38   rm -rf "$srcdir/$_gitname-build"
39   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
40   cd "$srcdir/$_gitname-build"
41 #  patch < ../arch.patch
44   #
45   # BUILD HERE
46   #
48   #./autogen.sh
49   #./configure --prefix=/usr
50   make ENABLE_CACA=1 PREFIX=/usr CONF_PREFIX=/etc || return 1
51   make DESTDIR="$pkgdir/" install
53   install -m755 -d "$pkgdir/var/lib/minbif/users"
54