blob: 8ebc651a6f7f181b49d626e7fc445c878329c52c (
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: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Mihai Bişog <mihai.bisog@gmail.com>
_android_arch=aarch64
pkgname=android-${_android_arch}-fmt
pkgver=11.0.2
pkgrel=1
arch=('any')
pkgdesc="Open-source formatting library for C++ (Android ${_android_arch})"
url='https://fmt.dev'
license=('MIT')
depends=('android-ndk')
makedepends=('android-cmake')
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://github.com/fmtlib/fmt/archive/refs/tags/${pkgver}.tar.gz")
md5sums=('3fe10c5184c8ecd0d2f9536c1b1ae95c')
build() {
cd "${srcdir}/fmt-${pkgver}"
source android-env ${_android_arch}
android-${_android_arch}-cmake \
-S . \
-B build-shared \
-DBUILD_SHARED_LIBS=ON \
-DFMT_DOC=OFF \
-DFMT_TEST=OFF
make -C build-shared $MAKEFLAGS
android-${_android_arch}-cmake \
-S . \
-B build-static \
-DBUILD_SHARED_LIBS=OFF \
-DFMT_DOC=OFF \
-DFMT_TEST=OFF
make -C build-static $MAKEFLAGS
}
package() {
cd "${srcdir}/fmt-${pkgver}"
source android-env ${_android_arch}
make -C build-shared DESTDIR="${pkgdir}" install
make -C build-static DESTDIR="${pkgdir}" install
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a
}
|