aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2023-07-13 02:12:17 +0000
committerpsykose <alice@ayaya.dev>2023-07-13 04:12:17 +0200
commit6fcfc7a744414c9d4662e1a3a4a34f8099f4de22 (patch)
treee57814cd1760b69e89a52d214ce9f0fec3560ba8
parent66f09150d59cd182ae9878848d7420520b8df9d8 (diff)
main/yajl: modernise
-rw-r--r--main/yajl/APKBUILD37
1 files changed, 5 insertions, 32 deletions
diff --git a/main/yajl/APKBUILD b/main/yajl/APKBUILD
index f1179048c17..18d80d3dc77 100644
--- a/main/yajl/APKBUILD
+++ b/main/yajl/APKBUILD
@@ -1,41 +1,14 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=yajl
pkgver=2.1.0
-pkgrel=7
+pkgrel=8
pkgdesc="Yet Another JSON Library (YAJL)"
url="https://lloyd.github.io/yajl/"
arch="all"
license="MIT"
makedepends="cmake samurai"
subpackages="$pkgname-static $pkgname-dev $pkgname-tools"
-source="https://dev.alpinelinux.org/archive/yajl/yajl-$pkgver.tar.gz"
-
-# How to create archive from git:
-#
-# abuild snapshot
-#
-
-_gitrepo=yajl.git
-_giturl="git://github.com/lloyd/$_gitrepo"
-_gittag=$pkgver
-
-snapshot() {
- local _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 "Uploading $_tarball"
- scp "$SRCDEST"/$_tarball dev.alpinelinux.org:/archive/$pkgname/
-}
+source="$pkgname-$pkgver-2.tar.gz::https://github.com/lloyd/yajl/archive/refs/tags/$pkgver.tar.gz"
build() {
cmake -B build -G Ninja \
@@ -60,10 +33,10 @@ check() {
tools() {
pkgdesc="JSON tools based on Yajl"
- mkdir -p "$subpkgdir"/usr/
- mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+
+ amove usr/bin
}
sha512sums="
-857101d8b99be22bde3c21ec1921ffcbbcd14735ff420728855e064631e6c4c4ceaec40b0e5c8b6d8cba1b36fe1ace0738f8e917e2f992107559b17ddf73de50 yajl-2.1.0.tar.gz
+9e786d080803df80ec03a9c2f447501e6e8e433a6baf636824bc1d50ecf4f5f80d7dfb1d47958aeb0a30fe459bd0ef033d41bc6a79e1dc6e6b5eade930b19b02 yajl-2.1.0-2.tar.gz
"