summaryrefslogtreecommitdiff
path: root/lua-md5-git/PKGBUILD
blob: 26ad0cd9411006df215b6dda689bf82910c5cc2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Contributor: Philipp Gesang <phg42.2a@gmail.com>
# Contributor of original lua-md5 PKGBUILD: Daniel J Griffiths <ghost1227@archlinux.us>

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")
sha512sums=("SKIP"
            "4c46b8e88ed11fe73e3e17138457e4f7f716643c9de67b5650d9fda48e0f261ebc83ac24c1059ee53d1fc35b10ac9956142ae7994b76d35bc66a01db9364d3c9")


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