blob: 0758653e5c8ebd068fbbd1edc8b81a2d380d5605 (
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
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Dan McGee <dan@archlinux.org>
_android_arch=armv7a-eabi
pkgname=android-${_android_arch}-libarchive
pkgver=3.7.4
pkgrel=1
arch=('any')
pkgdesc="Multi-format archive and compression library (Android ${_android_arch})"
url='https://libarchive.org/'
license=('BSD')
depends=("android-${_android_arch}-bzip2"
"android-${_android_arch}-libxml2"
"android-${_android_arch}-lz4"
"android-${_android_arch}-openssl"
"android-${_android_arch}-xz"
"android-${_android_arch}-zlib"
"android-${_android_arch}-zstd")
makedepends=('android-configure')
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://github.com/libarchive/libarchive/releases/download/v${pkgver}/libarchive-${pkgver}.tar.xz")
sha256sums=('f887755c434a736a609cbd28d87ddbfbe9d6a3bb5b703c22c02f6af80a802735')
build() {
cd "${srcdir}/libarchive-${pkgver}"
source android-env ${_android_arch}
export CFLAGS="${CFLAGS} -I${PWD}/contrib/android/include"
android-${_android_arch}-configure \
--disable-bsdcat \
--disable-bsdcpio \
--disable-bsdtar \
--disable-bsdunzip \
--without-nettle
make $MAKEFLAGS
}
package() {
cd "${srcdir}/libarchive-${pkgver}"
source android-env ${_android_arch}
make DESTDIR="$pkgdir" install
rm -rf "${pkgdir}/${ANDROID_PREFIX_SHARE}"
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a
}
|