updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / amblog / PKGBUILD
blob6e1ad6b427edb357bf95adc5e25c9ef02ba711af
1 # Maintainer: Alf <naihe2010@126.com>
2 pkgname=amblog
3 pkgver=20111014
4 pkgrel=1
5 pkgdesc="amblog is a multiple blog post"
6 arch=('i686' 'x64')
7 url="http://naihe2010.github.com/amblog"
8 license=('GPL')
9 depends=('gtk2' 'gtkhtml' 'curl' 'liboauth' 'openssl')
10 makedepends=('git')
11 source=()
12 _gitroot='http://github.com/naihe2010/amblog.git'
13 _gitname='amblog'
14 md5sums=()
16 build() {
17   cd "$srcdir"
18   msg "Connecting to GIT server...."
20   if [[ -d "$_gitname" ]]; then
21     cd "$_gitname" && git pull origin
22     msg "The local files are updated."
23   else
24     git clone "$_gitroot" "$_gitname"
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting build..."
30   rm -rf "$srcdir/$_gitname-build"
31   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32   cd "$srcdir/$_gitname-build"
34   mkdir build
35   cd build
36   cmake -DCMAKE_INSTALL_PREFIX=/usr ..
37   make
40 package() {
41   cd "$srcdir/$_gitname-build/build"
42   make DESTDIR="$pkgdir" install
45 # vim:set ts=2 sw=2 et: