blob: 62a6db79b23b378188a631932376ded8f4964119 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: seth <getchoo at tuta dot io>
# Contributor: xantares
_android_arch=x86-64
pkgname=android-${_android_arch}-zstd
_pkgname=zstd
pkgver=1.5.6
pkgrel=1
arch=('any')
pkgdesc="Zstandard - Fast real-time compression algorithm (Android ${_android_arch})"
url="http://www.zstd.net/"
license=('BSD'
'GPL2')
depends=("android-${_android_arch}-zlib"
"android-${_android_arch}-xz"
"android-${_android_arch}-lz4")
makedepends=('android-cmake')
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://github.com/facebook/zstd/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('30f35f71c1203369dc979ecde0400ffea93c27391bfd2ac5a9715d2173d92ff7')
build() {
cd "${srcdir}/zstd-${pkgver}"
source android-env ${_android_arch}
android-${_android_arch}-cmake \
-S build/cmake \
-B builddir \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_LIBDIR=lib \
-DZSTD_ZLIB_SUPPORT=ON \
-DZSTD_LZMA_SUPPORT=ON \
-DZSTD_LZ4_SUPPORT=ON \
-DZSTD_BUILD_CONTRIB=OFF \
-DZSTD_BUILD_TESTS=OFF \
-DZSTD_PROGRAMS_LINK_SHARED=OFF \
-DZSTD_BUILD_PROGRAMS=OFF
make -C builddir $MAKEFLAGS
}
package() {
cd "${srcdir}/zstd-${pkgver}"
source android-env ${_android_arch}
make -C builddir DESTDIR="${pkgdir}" install
${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a || true
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
}
|