updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / verlihub-git / PKGBUILD
blob092543f9d947c90e35e6ffcba578394914e6c996
1 # Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
3 pkgname=verlihub-git
4 pkgver=20120125
5 pkgrel=1
6 pkgdesc="A DC++ protocol server (hub) (GIT version)"
7 arch=('i686' 'x86_64')
8 license=('LGPL')
9 url="http://www.verlihub-project.org/"
10 depends=('geoip' 'mysql' 'gettext' 'lua' 'python2')
11 makedepends=('git')
12 replace=('verlihub')
13 conflicts=('verlihub')
15 _gitroot="git://verlihub.git.sourceforge.net/gitroot/verlihub/verlihub"
16 _gitname="verlihub"
18 build() {
19     msg "Connecting to GIT server..."
21     if [ -d "${srcdir}"/"${_gitname}" ] ; then
22         cd "${_gitname}" && git pull origin
23     else
24         git clone "${_gitroot}"
25     fi
26     
27     [ -d "${srcdir}"/"${_gitname}"-build ] && rm -fr "${srcdir}"/"${_gitname}"-build
28     cp -R "${srcdir}"/"${_gitname}" "${srcdir}"/"${_gitname}"-build
29     
30     msg "GIT checkout done or server timeout"
31     msg "Starting build..."
32         
33     cd "${srcdir}"/"${_gitname}"-build
34     ./configure --prefix=/usr
35     make
37 package() {
38     cd "${srcdir}"/"${_gitname}"-build
39     make DESTDIR="${pkgdir}" install