updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / asym-git / PKGBUILD
blobba8e3b29c1142f809d0fdeefa03d67402bca90a3
1 #Maintainer dawn <crackofdusk at gmail dot com>
2 pkgname=asym-git
3 pkgver=20100726
4 pkgrel=1
5 pkgdesc="A fast and lightweight IRC client which (soon) aims to become smart and able to learn from its user thanks to a small IA"
6 arch=('i686' 'x86_64')
7 url="http://asym.tyruiop.org"
8 license=('GPL3')
9 depends=('libasym-git' 'ncurses')
10 optdepends=('gcc: to build extensions during runtime')
11 makedepends=('git')
12 provides=('asym')
14 _gitroot="http://github.com/Tyruiop/asym.git"
15 _gitname="asym"
17 build() {
18   cd $srcdir
20   msg "Connecting to GIT server..."
21   if [[ -d $_gitname ]]; then
22     (cd $_gitname && git pull origin) || return 1
23   else
24     git clone $_gitroot $_gitname || return 1
25   fi
26   
27   msg "GIT checkout done or server timeout"
28   msg "Starting make..."
30   rm -rf $_gitname-build || return 1
31   cp -r $_gitname $_gitname-build || return 1
32   cd $_gitname-build || return 1
34   mkdir -p $pkgdir/etc $pkgdir/usr/lib $pkgdir/usr/bin || return 1
35   ./configure || return 1
36   cd build || return 1
38   sed -i "s|/usr/local/|/usr/|g" Makefile || return 1
40   make || return 1
41   make DESTDIR=$pkgdir install || return 1