updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / archweb-git / PKGBUILD
blobae47b0ec1ea485ce766ad6133bd66362f4851321
2 # Pimper : M0Rf30
4 pkgname=archweb-git
5 pkgver=20101121
6 pkgrel=1
7 pkgdesc="Arch website code "
8 arch=('i686' 'x86_64')
9 url="http://projects.archlinux.org/archweb.git/"
10 license=('GPL')
11 depends=('django' 'python-pysqlite' 'mysql' 'python-south' 'python-memcached' 'mysql-python')
12 install=$pkgname.install
15 _gitroot="git://projects.archlinux.org/archweb.git"
16 _gitname="archweb"
18 build() {
19         msg "Connecting to GIT server...."
21         [ -d $_gitname ] && {
22                 cd $_gitname
23                 git pull origin
24                 cd ..
26                 msg "Local files have been updated."
27         } || {
28                 git clone $_gitroot
29         }
31         msg "GIT checkout done or server timeout"
33         rm -rf $_gitname-build
34         mkdir -p $pkgdir/srv/http
35         git clone $_gitname $pkgdir/srv/http/$_gitname
36         rm -r $pkgdir/srv/http/$_gitname/.git*
37         
38