From 0c3ab7b2595e6b3b1ec5b8c1e39bc70143ef4af7 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sat, 29 Jun 2013 15:24:26 +0200 Subject: initial; lua-md5-git --- lua-md5-git/PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 lua-md5-git/PKGBUILD (limited to 'lua-md5-git/PKGBUILD') diff --git a/lua-md5-git/PKGBUILD b/lua-md5-git/PKGBUILD new file mode 100644 index 0000000..71494a8 --- /dev/null +++ b/lua-md5-git/PKGBUILD @@ -0,0 +1,33 @@ +# Contributor: Philipp Gesang +# Contributor of original lua-md5 PKGBUILD: Daniel J Griffiths + +pkgname=lua-md5-git +pkgver=1.1.2 +pkgrel=1 +pkgdesc="Basic cryptographic facilities for Lua 5.2" +arch=("i686" "x86_64") +url="https://github.com/keplerproject/md5" +license=("MIT") +depends=("lua") +makedepends=("git") +source=("git://github.com/keplerproject/md5.git" "LICENSE") +md5sums=("SKIP" "9ac505254abc686b34763c2118dc2e1b") + +build() { + cd ${srcdir}/md5 + ./configure + make +} + +package() { + cd ${srcdir}/md5 + sed -i "s|\$(LUA_LIBDIR)|${pkgdir}/\$(LUA_LIBDIR)|" Makefile + sed -i "s|\$(LUA_DIR)|${pkgdir}/\$(LUA_DIR)|" Makefile + sed -i "s|\(LUA_LIBDIR=.*\)5.1|\15.2|" config + sed -i "s|\(LUA_DIR=.*\)5.1|\15.2|" config + sed -i "s|LUA_VERSION_NUM= 501|LUA_VERSION_NUM= 502|" config + make install + install -Dm644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} + +# vim:ts=2:sw=2:expandtab -- cgit v1.2.3