blob: 9e54d5813fa79e7f8c1bf1a9a9b00dfe74a894b8 (
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=x86
pkgname=android-${_android_arch}-libarchive
pkgver=3.7.7
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")
md5sums=('50c4dea9eba9a0add25ac1cfc9ba2cdb')
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
}
|