updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / lualpm-git / PKGBUILD
blobe55d21beca2a4b985db0782a2c8675ee69535b5d
1 # Contributor: Pierre Chapuis <catwell at archlinux dot us>
2 # Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
4 pkgname=lualpm-git
5 pkgver=20100329
6 pkgrel=1
7 pkgdesc="Lua bindings for libalpm."
8 arch=('i686' 'x86_64')
9 url="http://clyde.archuser.com"
10 license=('custom')
11 makedepends=('git')
12 provides=('lualpm')
13 conflicts=('clyde' 'clyde-git' 'lualpm')
15 _gitroot="git://github.com/Kiwi/clyde.git"
16 _gitname="clyde"
18 build() {
19   cd "$srcdir"
20   if [ -d $_gitname ] ; then
21     cd $_gitname
22     git pull origin
23   else
24     git clone $_gitroot
25   fi
26   msg "GIT checkout done or server timeout"
28   cd $srcdir
29   rm -rf $_gitname-build
30   git clone $_gitname $_gitname-build
31   cd $_gitname-build
33   make lualpm || return 1
34   make DESTDIR=${pkgdir} install_lualpm || return 1
35   install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
36