diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2015-07-21 13:39:00 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2015-07-21 13:39:05 +0200 |
commit | 9331f1a5f15c4dbcee2bc8716dbb19ca362a94e6 (patch) | |
tree | 238d46e8c822dfefa9e6034a82d5f176016b17ab /testing | |
parent | 7c38b24ff905416132ea595663d3bd9f4f06d3cf (diff) | |
download | aports-9331f1a5f15c4dbcee2bc8716dbb19ca362a94e6.tar.bz2 aports-9331f1a5f15c4dbcee2bc8716dbb19ca362a94e6.tar.xz |
testing/lua-hashids: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/lua-hashids/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/lua-hashids/APKBUILD b/testing/lua-hashids/APKBUILD new file mode 100644 index 0000000000..40bfcffaed --- /dev/null +++ b/testing/lua-hashids/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=lua-hashids +pkgver=1.0.0 +pkgrel=0 +pkgdesc="A Lua implementation of hashids" +url="https://github.com/leihog/hashids.lua" +arch="all" +license="MIT" +depends="" +depends_dev="lua5.1-dev" +makedepends="$depends_dev" +install="" +subpackages="" +source="hashids.lua-$pkgver.tar.gz::https://github.com/leihog/hashids.lua/archive/v$pkgver.tar.gz" + +_builddir="$srcdir"/hashids.lua-$pkgver + +prepare() { + local i + cd "$_sdir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + make || return 1 +} + +package() { + cd "$_builddir" + install -Dm644 hashids/init.lua \ + "$pkgdir"/usr/share/lua/5.1/hashids/init.lua || return 1 + install -Dm755 hashids/clib.so \ + "$pkgdir"/usr/lib/lua/5.1/hashids/clib.so || return 1 +} + +md5sums="ace60336593b06eb7f7e8a9e37b5a0fd hashids.lua-1.0.0.tar.gz" +sha256sums="2a99927bba9c986be544d6c483b953c8f39b56cd5915a154553154c8aab7e3fc hashids.lua-1.0.0.tar.gz" +sha512sums="2d9f6928c82f0ce3e70f729f8f366f85bd2482474e841524c894381a125a27d5e209bf2f9a7b9e5d9fd476fd3865aca2be4c9c2118ebe125995fbd3008a1962a hashids.lua-1.0.0.tar.gz" |