updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / dex-editor-git / PKGBUILD
blob05c7a97d5cdb328af786c00b5450990521859b5f
1 pkgname=dex-editor-git
2 pkgver=20110923
3 pkgrel=1
4 pkgdesc="dex - dextrous text editor"
5 arch=('i686' 'x86_64')
6 url="http://github.com/tihirvon/dex"
7 license=('GPL2')
8 depends=('glibc')
9 makedepends=('git')
11 _gitroot="git://github.com/tihirvon/dex.git"
12 _gitname="dex"
14 build() {
15   cd "$srcdir"
16   msg "Connecting to GIT server...."
18   if [[ -d "$_gitname" ]]; then
19     cd "$_gitname" && git pull origin
20     msg "The local files are updated."
21   else
22     git clone "$_gitroot" "$_gitname"
23   fi
25   msg "GIT checkout done or server timeout"
26   msg "Starting build..."
28   rm -rf "$srcdir/$_gitname-build"
29   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
30   cd "$srcdir/$_gitname-build"
32   make prefix=/usr DESTDIR=$pkgdir
33   make prefix=/usr DESTDIR=$pkgdir install