summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGonzalo Exequiel Pedone2025-03-16 08:56:39 -0300
committerGonzalo Exequiel Pedone2025-03-16 08:56:39 -0300
commit3e9b9f173393f743d84f3bf1eeda66dc81c1763c (patch)
tree18fc7480788a50e9e9c8fec072a3a1c5b07b6b43 /PKGBUILD
downloadaur-3e9b9f173393f743d84f3bf1eeda66dc81c1763c.tar.gz
New package.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..795258b3e3ce
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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=riscv64
+
+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
+}