aboutsummaryrefslogtreecommitdiffstats
path: root/community/zstd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-03-22 09:09:47 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-03-22 09:12:32 +0000
commitc335aab39610cbb04e3773eaacf6420e06a68478 (patch)
treef74b5808b013af4b2d462bb712b14134ef2c1505 /community/zstd
parentc3df90fbffd4f330b8032027f125233f33c082da (diff)
downloadaports-c335aab39610cbb04e3773eaacf6420e06a68478.tar.bz2
aports-c335aab39610cbb04e3773eaacf6420e06a68478.tar.xz
community/zstd: force -O2, split libs and static subpackage
We force -O2 over system configured -Os since it seem to have significant impact on performance. We also split out -libs and -static subpackage.
Diffstat (limited to 'community/zstd')
-rw-r--r--community/zstd/APKBUILD13
1 files changed, 10 insertions, 3 deletions
diff --git a/community/zstd/APKBUILD b/community/zstd/APKBUILD
index 1113f6ffb1..4ab3419833 100644
--- a/community/zstd/APKBUILD
+++ b/community/zstd/APKBUILD
@@ -2,19 +2,20 @@
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=zstd
pkgver=1.3.3
-pkgrel=0
+pkgrel=1
pkgdesc="Zstandard - Fast real-time compression algorithm"
url="http://www.zstd.net"
arch="all !armhf"
license="BSD"
checkdepends="file"
-subpackages="$pkgname-dev $pkgname-doc"
+subpackages="$pkgname-static $pkgname-libs $pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/facebook/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
- make -j1
+ unset CPPFLAGS
+ make MOREFLAGS="-O2"
}
check() {
@@ -27,4 +28,10 @@ package() {
make PREFIX="/usr" DESTDIR="$pkgdir" install
}
+static() {
+ pkgdesc="zstd static library"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/
+}
+
sha512sums="72b63f96f65ca987cdc82c24354f7665c7dc3b2563cb0646f355c34bf8f090d8a0759729f8beaba8317272bdab34749f934055707b25cfd69c98a9fdcfbc59ae zstd-1.3.3.tar.gz"