summaryrefslogtreecommitdiff
path: root/community/luaexpat/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/luaexpat/PKGBUILD')
-rw-r--r--community/luaexpat/PKGBUILD36
1 files changed, 21 insertions, 15 deletions
diff --git a/community/luaexpat/PKGBUILD b/community/luaexpat/PKGBUILD
index 4b5663271..b46e7bc75 100644
--- a/community/luaexpat/PKGBUILD
+++ b/community/luaexpat/PKGBUILD
@@ -1,30 +1,36 @@
-# $Id: PKGBUILD 66195 2012-02-23 03:06:28Z spupykin $
+# $Id: PKGBUILD 81114 2012-12-12 00:47:39Z eric $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Lucas Hermann Negri <kkndrox@gmail.com>
-pkgname=luaexpat
+pkgbase=luaexpat
+pkgname=(lua-expat)
pkgver=1.2.0
-pkgrel=2
-pkgdesc='LuaExpat is a SAX XML parser based on the Expat library. LuaExpat is free software and uses the same license as Lua 5.0.'
+pkgrel=1
+pkgdesc='SAX XML parser based on the Expat library'
arch=('i686' 'x86_64')
url='http://code.matthewwild.co.uk/lua-expat'
license=('MIT')
-makedepends=('gcc' 'lua>=5.1' 'expat>=2')
-depends=('lua' 'expat')
+makedepends=('gcc' 'lua' 'expat>=2')
+replaces=(luaexpat)
+conflicts=(luaexpat)
source=("http://matthewwild.co.uk/projects/luaexpat/luaexpat-$pkgver.tar.gz"
- 'newconfig')
+ 'newconfig'
+ 'lua52.patch')
md5sums=('03efe50c7f30a34580701e6527d7bfee'
- 'b89a09379d3e46e6496255e44cecc316')
+ '60ae0633ac6f829cc3359f3533252eb0'
+ '21da93cbf0d3cef80d00e2380b7c2679')
build() {
- cd $srcdir/
- mv newconfig $pkgname-$pkgver/config
- cd $pkgname-$pkgver
+ cd $pkgbase-$pkgver
+ patch -p1 < "$srcdir/lua52.patch"
+ cp -L "$srcdir/newconfig" config
make
}
-package() {
- cd $srcdir/$pkgname-$pkgver
- make DESTDIR=$pkgdir install
- mv usr $pkgdir
+package_lua-expat() {
+ depends=('lua' 'expat')
+ cd $pkgbase-$pkgver
+ make DESTDIR="$pkgdir" install
+ mv usr "$pkgdir"
+ install -Dm0644 doc/us/license.html "$pkgdir/usr/share/licenses/$pkgname/license.html"
}