updated on Wed Jan 11 20:01:35 UTC 2012
[aur-mirror.git] / beaver-git / PKGBUILD
blobfaee9b3a8364598451de7cfaa004aed2915e8b2d
1 # Maintainer: TDY <tdy@gmx.com>
3 pkgname=beaver-git
4 pkgver=20101121
5 pkgrel=1
6 pkgdesc="A lightweight, modular, and stylish editor"
7 arch=('i686' 'x86_64')
8 url="http://www.nongnu.org/beaver/"
9 license=('GPL')
10 depends=('gtk2>=2.10.0' 'hicolor-icon-theme')
11 makedepends=('git' 'intltool>=0.40.0' 'pkgconfig>=0.9.0')
12 provides=('beaver')
13 conflicts=('beaver')
14 options=('!libtool')
15 install=beaver.install
17 _gitroot=git://beaver-editor.git.sourceforge.net/gitroot/beaver-editor
18 _gitname=beaver-editor
20 build() {
21   cd "$srcdir"
23   msg "Connecting to $_gitroot..."
24   if [[ -d $_gitname ]]; then
25     cd $_gitname && git pull origin
26     msg2 "Local files updated"
27   else
28     git clone $_gitroot/$_gitname
29     msg2 "GIT checkout done"
30   fi
32   rm -rf "$srcdir/$_gitname-build"
33   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36   msg "Starting make..."
37   ./autogen.sh && ./configure --prefix=/usr
38   make
41 package() {
42   cd "$srcdir/$_gitname-build"
43   make prefix="$pkgdir/usr" install