# Maintainer: Natanael Copa 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="lua" 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"