Commit 6072a809 authored by Jakub Jirutka's avatar Jakub Jirutka

main/lua5.2-b64: improve abuild

parent fdebe437
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua5.2-b64
_pkgname=lua-b64
pkgver=0.1
pkgrel=1
pkgdesc="Lua 5.2 base64 implementation with support for urlsafe"
url="https://github.com/ncopa/lua-b64"
arch="all"
license="MIT"
depends=""
depends_dev=""
makedepends="$depends_dev lua5.2-dev"
install=""
subpackages=""
source="lua-b64-$pkgver.tar.gz::https://github.com/ncopa/lua-b64/archive/v0.1.tar.gz
makedepends="lua5.2-dev"
source="$_pkgname-$pkgver.tar.gz::https://github.com/ncopa/$_pkgname/archive/v$pkgver.tar.gz
0001-b64-fix-segfault-caused-by-signed-char.patch"
_builddir="$srcdir"/lua-b64-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$_builddir"
cd "$builddir"
make
}
package() {
cd "$_builddir"
install -D b64.so "$pkgdir"/usr/lib/lua/5.2/b64.so || return 1
cd "$builddir"
install -D b64.so "$pkgdir"/usr/lib/lua/5.2/b64.so
}
md5sums="91e537a0aedc7bd2fb4ca38cda1d9f9f lua-b64-0.1.tar.gz
f396211df1ed6f94c2d23fc1c102ffdb 0001-b64-fix-segfault-caused-by-signed-char.patch"
sha256sums="5136414bc5db7e6bfc96ff7eb9ac56e797419d04c5b4d3483891c8714239d700 lua-b64-0.1.tar.gz
2e4b39f088c275fa572379283489232cecf383e2c6c6fd43e802b6be72cbc70e 0001-b64-fix-segfault-caused-by-signed-char.patch"
sha512sums="8740d5061db01dca166ce2c959548a3232c85dce156fce3502da35f457db79db2bf23242ee6d26b64f4141c451db733898328b8fc3d1f62b47e8f7ec790577d1 lua-b64-0.1.tar.gz
6da3b8048b2e6772a4aac954ea2db35f9c21897d720e7ff9dc6c1d63ffc37eeb4fb91be46bc13b32a2c3d1b88997172fe259ea699ac8591f0f3e1fd53cae378b 0001-b64-fix-segfault-caused-by-signed-char.patch"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment