updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / slnunicode / PKGBUILD
blob5985dfe5edb189d58906c9ff57220cf0c76925ac
1 # Maintainer: Philipp Gesang <megas dot kapaneus at gmail dot com>
2 pkgname=slnunicode
3 pkgver=1.1
4 pkgrel=1
5 pkgdesc="Unicode-aware replacement for the Lua string library from the Selene database."
6 arch=("any")
7 url="http://luaforge.net/projects/sln/"
8 license=("custom")
9 depends=("lua")
10 source=("http://luaforge.net/frs/download.php/1693/${pkgname}-${pkgver}.tar.bz2"
11         "patch_slnunicode.diff" # http://lua-users.org/lists/lua-l/2008-02/msg00043.html
12         "LICENSE")
13 md5sums=('6cb97097b6a61e4232701dcd7948847c'
14          '60426d3101bd0c4dca4d05333d75f9ec'
15          '18ad94b36b198743a0142b3ada1411d7')
17 build() {
18     cp ./patch_slnunicode.diff "${srcdir}/${pkgname}-${pkgver}/patch_slnunicode.diff"
19     cd "${srcdir}/${pkgname}-${pkgver}"
20     patch -p0 < ./patch_slnunicode.diff
21     gcc -O2 -fPIC -I/usr/include -c slnunico.c -o ./slnunico.o
22     gcc -O2 -fPIC -I/usr/include -c slnudata.c -o ./slnudata.o
23     gcc -shared -o unicode.so -L/usr/lib slnunico.o ./slnudata.o
24     install -Dm0755 "${srcdir}/${pkgname}-${pkgver}/unicode.so" "${pkgdir}/usr/lib/lua/5.1/unicode.so"
25     install -Dm0644 "${srcdir}/LICENSE"                         "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"