1 # Maintainer: Philipp Gesang <megas dot kapaneus at gmail dot com>
5 pkgdesc="Unicode-aware replacement for the Lua string library from the Selene database."
7 url="http://luaforge.net/projects/sln/"
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
13 md5sums=('6cb97097b6a61e4232701dcd7948847c'
14 '60426d3101bd0c4dca4d05333d75f9ec'
15 '18ad94b36b198743a0142b3ada1411d7')
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"