aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-cmsgpack
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-06-06 09:06:22 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-06-06 09:07:15 +0000
commit4d07a0e655f6e006e06981fc7bd06c45f170422e (patch)
tree7163e9567aa144fa55a29ca0ad85f268eb8d6928 /main/lua-cmsgpack
parent106e5a0e548c7f02acb97f7c8f34f6b5039676dd (diff)
downloadaports-4d07a0e655f6e006e06981fc7bd06c45f170422e.tar.bz2
aports-4d07a0e655f6e006e06981fc7bd06c45f170422e.tar.xz
main/lua-cmgspack: use githubs tag download archive
Diffstat (limited to 'main/lua-cmsgpack')
-rw-r--r--main/lua-cmsgpack/APKBUILD26
1 files changed, 5 insertions, 21 deletions
diff --git a/main/lua-cmsgpack/APKBUILD b/main/lua-cmsgpack/APKBUILD
index e45d66a38e..018f3fae0b 100644
--- a/main/lua-cmsgpack/APKBUILD
+++ b/main/lua-cmsgpack/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=lua-cmsgpack
pkgver=0.3.0
-pkgrel=0
+pkgrel=1
pkgdesc="MessagePack C implementation for Lua"
url="https://github.com/antirez/lua-cmsgpack"
arch="all"
@@ -13,27 +13,9 @@ makedepends="lua-dev"
install=""
subpackages=""
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.bz2"
-_giturl="https://github.com/antirez/lua-cmsgpack.git"
-_upload=dev.alpinelinux.org:/archive/$pkgname/
+source="lua-cmsgpack.tar.gz::https://github.com/antirez/lua-cmsgpack/archive/$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver
-snapshot() {
- local _pkg=$pkgname-$pkgver.tar.bz2
- mkdir -p "$srcdir"
- cd "$srcdir"
- rm -rf "$pkgname"
- git clone --depth=1 --bare $_giturl || return 1
- local _tag=$(git --git-dir ${_giturl##*/} tag| head -1)
- git --git-dir ${_giturl##*/} archive \
- --prefix=$pkgname-$pkgver/ --format=tar \
- $_tag | bzip2 > $_pkg || return 1
- msg "New snapshot: $_pkg"
- if [ -n "$_upload" ]; then
- msg "Uploading to $_upload"
- scp $_pkg $_upload && abump $pkgname-$pkgver || return 1
- fi
-}
-
build() {
cd "$_builddir"
${CC:-gcc} $CFLAGS -fPIC $(pkg-config --cflags lua) -o cmsgpack.so -shared $LFDLAGS $(pkg-config --libs lua) lua_cmsgpack.c
@@ -45,4 +27,6 @@ package() {
install -D cmsgpack.so "$pkgdir"/$dir/cmsgpack.so
}
-md5sums="c7224cc06a6b03edce287bce797de851 lua-cmsgpack-0.3.0.tar.bz2"
+md5sums="f96c551f9d8560c227bc20723383c74b lua-cmsgpack.tar.gz"
+sha256sums="d0e819ddd67c317eae3506ae384b27d179aea1fb531cd06eb369636adfd6167a lua-cmsgpack.tar.gz"
+sha512sums="0bae955df022d2f3998e6f84470ab9a8605f38c61bbdbe12e07bfe1aebb3e57b4671a960ded52ee642de60bab2e176863a7a92a17d7660c64d50c8a7363866e4 lua-cmsgpack.tar.gz"