blob: 269f6619295a30fe5db124736d89c5566c994f98 (
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
36
37
38
39
40
41
42
43
44
45
46
47
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua-lmd5
pkgver=5.1.2011.03.24
pkgrel=0
pkgdesc="A message digest library for Lua based on OpenSSL"
url="http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lmd5"
arch="all"
license="Public Domain"
depends=
makedepends="lua-dev openssl-dev"
install=
subpackages="$pkgname-sha"
# seems like they just update the upstream source package. Version is found in
# luuid.c
# For date and checksum see:
# http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/release.txt
source="http://dev.alpinelinux.org/archive/lmd5/lmd5-$pkgver.tar.gz"
#source="http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/5.1/lmd5.tar.gz"
_builddir="$srcdir"/md5
prepare() {
cd "$_builddir"
}
build() {
cd "$_builddir"
make digests LUABIN=/usr/bin || return 1
}
package() {
cd "$_builddir"
local cmod=$(pkg-config --variable INSTALL_CMOD lua)
mkdir -p "$pkgdir"/$cmod
cp -a *.so "$pkgdir"/$cmod/
}
sha() {
local cmod=$(pkg-config --variable INSTALL_CMOD lua)
mkdir -p "$subpkgdir"/$cmod
mv "$pkgdir"/$cmod/sha*.so "$subpkgdir"/$cmod/
}
md5sums="bc336a560b7b6513982c17eec9692bd6 lmd5-5.1.2011.03.24.tar.gz"
|