updated on Sun Jan 8 16:01:26 UTC 2012
[aur-mirror.git] / gsmlib-git / PKGBUILD
blobc528a11590b171335aece568404ca98829ad4cb5
1 # Maintainer: Vianney Bouchaud <v[at]bouchaud[dot]org>
2 pkgname='gsmlib-git'
3 pkgver=20120108
4 pkgrel=1
5 pkgdesc="gsm-utils: GSM mobile phone access applications"
6 url="https://github.com/vbouchaud/gsmlib"
7 arch=('any')
8 license=('LGPL')
9 makedepends=('git' 'pkg-config' 'glib2')
11 _gitroot='git://github.com/vbouchaud/gsmlib.git'
12 _gitname='gsmlib'
13 _builddir=${_gitname}-build
15 build() {
16            cd ${srcdir}
18            msg 'Connecting to GIT server...'
20            if [ -d ${_builddir} ]; then
21                     msg 'Cleaning previous build...'
22                     rm -rf ${_builddir}
23            fi
25            git clone ${_gitroot} ${_builddir}
27            msg 'GIT checkout done or server timeout.'
29            cd ${_builddir}
30            msg 'Starting configure'
32            ./configure
34            msg 'Starting make'
36            make
39 package () {
40     cd "${srcdir}/${_builddir}"
41     make DESTDIR="$pkgdir" install