updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / slncrypto / PKGBUILD
blobf912ff8839b781d8790f8267958d480148009b71
1 # Contributor: Anders Bergh <anders1@gmail.com>
2 pkgname=slncrypto
3 pkgver=1.1
4 pkgrel=1
5 pkgdesc="Selene database crypto Lua library"
6 arch=('i686' 'x86_64')
7 url="http://luaforge.net/projects/sln/"
8 license=('custom')
9 depends=(lua)
10 # LuaForge urls have to be updated manually (the ID is different)
11 source=(http://luaforge.net/frs/download.php/1692/slncrypto-1.1.tar.bz2
12         license.txt)
13 md5sums=('4709bffa83fbd03eeca4174f1a009bb4'
14          '4f35b971b46468d4918ba5f466db6782')
16 build() {
17   cd "${srcdir}/${pkgname}-${pkgver}" || return 1
18   gcc -fPIC -shared $CFLAGS slncrypt.c -o crypto.so || return 1
19   install -Dm755 crypto.so "${pkgdir}/usr/lib/lua/5.1/crypto.so" || return 1
20   install -Dm644 "${srcdir}/license.txt" "${pkgdir}/usr/share/licenses/slncrypto/LICENSE"