mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 05:36:38 +02:00
abuild now exports CTEST_OUTPUT_ON_FAILURE=ON by default which means this repetition can be removed from the aports.
49 lines
1.2 KiB
Text
49 lines
1.2 KiB
Text
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=yajl
|
|
pkgver=2.1.0
|
|
pkgrel=9
|
|
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="$pkgname-$pkgver-2.tar.gz::https://github.com/lloyd/yajl/archive/refs/tags/$pkgver.tar.gz
|
|
CVE-2023-33460.patch
|
|
"
|
|
|
|
# secfixes:
|
|
# 2.1.0-r9:
|
|
# - CVE-2023-33460
|
|
|
|
build() {
|
|
cmake -B build -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
cmake --build build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
|
|
mkdir -p "$pkgdir"/usr/lib
|
|
mv "$pkgdir"/usr/share/pkgconfig "$pkgdir"/usr/lib/
|
|
mv "$pkgdir"/usr/lib/libyajl_s.a "$pkgdir"/usr/lib/libyajl.a
|
|
}
|
|
|
|
check() {
|
|
cd build
|
|
ctest
|
|
}
|
|
|
|
tools() {
|
|
pkgdesc="JSON tools based on Yajl"
|
|
|
|
amove usr/bin
|
|
}
|
|
|
|
sha512sums="
|
|
9e786d080803df80ec03a9c2f447501e6e8e433a6baf636824bc1d50ecf4f5f80d7dfb1d47958aeb0a30fe459bd0ef033d41bc6a79e1dc6e6b5eade930b19b02 yajl-2.1.0-2.tar.gz
|
|
3dcd1e162073bb926a620f5ac74e5fccd605fcd114f79df175fc24de19d3c03b854dc576977c259183181966551c94f99ac925bc43a7526e366bd765d64ceadf CVE-2023-33460.patch
|
|
"
|