blob: ab83de079d366f4150f78825606401ff17bbea0f (
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
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Chocobo1 <chocobo1@archlinux.net>
_android_arch=armv7a-eabi
pkgname=android-${_android_arch}-libdeflate
pkgver=1.22
pkgrel=1
arch=('any')
pkgdesc="Heavily optimized library for DEFLATE/zlib/gzip compression and decompression (Android ${_android_arch})"
url='https://github.com/ebiggers/libdeflate'
license=('MIT')
groups=('android-libdeflate')
depends=('android-ndk')
makedepends=('android-cmake')
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://github.com/ebiggers/libdeflate/archive/refs/tags/v${pkgver}.tar.gz")
md5sums=('09b9bac25b43eac3f89d34eefb8e71bf')
build() {
cd "${srcdir}/libdeflate-${pkgver}"
source android-env ${_android_arch}
android-${_android_arch}-cmake \
-S . \
-B build \
-DLIBDEFLATE_BUILD_STATIC_LIB=ON \
-DLIBDEFLATE_BUILD_TESTS=OFF \
-DLIBDEFLATE_BUILD_GZIP=OFF
cmake --build build
}
package() {
cd "${srcdir}/libdeflate-${pkgver}"
source android-env ${_android_arch}
DESTDIR="${pkgdir}" cmake --install build
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a
}
|