summaryrefslogtreecommitdiff
path: root/user/yajl
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2022-04-22 07:15:50 +0000
committerZach van Rijn <me@zv.io>2022-10-21 18:33:58 -0500
commit6297d894ad48c0c448888fab5f15bd11bb0e7a33 (patch)
tree393acbf3e1361b412826c9b6c659fd3bc153aaa8 /user/yajl
parent4bfd77173b70a21ef656d480c613d6e2481b7388 (diff)
downloadpackages-6297d894ad48c0c448888fab5f15bd11bb0e7a33.tar.gz
packages-6297d894ad48c0c448888fab5f15bd11bb0e7a33.tar.bz2
packages-6297d894ad48c0c448888fab5f15bd11bb0e7a33.tar.xz
packages-6297d894ad48c0c448888fab5f15bd11bb0e7a33.zip
user/yajl: update source tarball checksum. see #554.
Diffstat (limited to 'user/yajl')
-rw-r--r--user/yajl/APKBUILD33
1 files changed, 29 insertions, 4 deletions
diff --git a/user/yajl/APKBUILD b/user/yajl/APKBUILD
index 5be54b007..51f0b920b 100644
--- a/user/yajl/APKBUILD
+++ b/user/yajl/APKBUILD
@@ -1,16 +1,42 @@
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=yajl
pkgver=2.1.0
-pkgrel=0
+pkgrel=1
pkgdesc="Yet Another JSON Library (YAJL)"
-url="http://lloyd.github.com/yajl/"
+url="https://lloyd.github.io/yajl/"
arch="all"
license="ISC"
depends=""
checkdepends="cmd:which"
makedepends="cmake"
subpackages="$pkgname-dev $pkgname-tools"
-source="yajl-$pkgver.tar.gz::https://github.com/lloyd/yajl/archive/$pkgver.tar.gz"
+source="https://distfiles.adelielinux.org/source/$pkgname-$pkgver.tar.gz"
+
+# How to create archive from git:
+#
+# abuild snapshot
+#
+
+_gitrepo=yajl.git
+_giturl="https://github.com/lloyd/$_gitrepo"
+_gittag=$pkgver
+
+snapshot() {
+ _tarball=$pkgname-$pkgver.tar.gz
+ msg "Creating $_tarball.."
+ mkdir -p "$srcdir"
+ cd "${SRCDEST:-$srcdir}"
+ if ! [ -d "$_gitrepo" ]; then
+ git clone --bare $_giturl
+ else
+ git --git-dir=$_gitrepo fetch
+ fi
+
+ git --git-dir=$_gitrepo archive --prefix=$pkgname-$pkgver/ \
+ -o "$SRCDEST"/$_tarball $_gittag
+
+ msg "Upload $_tarball to mirrormaster now."
+}
build() {
cmake \
@@ -37,5 +63,4 @@ tools() {
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}
-
sha512sums="9e786d080803df80ec03a9c2f447501e6e8e433a6baf636824bc1d50ecf4f5f80d7dfb1d47958aeb0a30fe459bd0ef033d41bc6a79e1dc6e6b5eade930b19b02 yajl-2.1.0.tar.gz"