updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / luasocket2-hg / PKGBUILD
blob179bc748fed2c6d51b73ede46699b6b6b3013156
1 # $Id: PKGBUILD 41828 2011-03-09 12:08:16Z spupykin $
2 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 # Contributor: Anders Bergh <anders1@gmail.com>
5 pkgname=luasocket2-hg
6 pkgver=9
7 pkgrel=1
8 pkgdesc="Luasocket is the most comprehensive networking support library for the Lua language, with IPv6 support."
9 arch=('i686' 'x86_64')
10 url="http://code.matthewwild.co.uk/luasocket2-hg"
11 license=('MIT')
13 depends=(lua)
14 makedepends=(mercurial)
15 conflicts=(luasocket)
16 provides=('luasocket=2.0.3')
18 source=(lua-license.html::http://www.lua.org/copyright.html
19         luasocket-arch.patch
20         luasocket-unixsocket.patch)
21 md5sums=('fb2f89277430ce0118178e85d242d2e1'
22          'e6efd6a8d0eb12e162e21c45f83c9cec'
23          'fd094b319c3099e09384b15d8127a066')
25 _hgroot=http://code.matthewwild.co.uk
26 _hgrepo=$pkgname
28 build() {
29   cd "$srcdir/$_hgrepo"
31   patch -p0 < $srcdir/luasocket-arch.patch
32   patch -p0 < $srcdir/luasocket-unixsocket.patch
34   make linux
35   make DESTDIR="$pkgdir" install
37   install -D -m0644 $srcdir/lua-license.html $pkgdir/usr/share/licenses/$pkgname/lua-license.html