blob: dea68cb3eed59d1f048cc3b4a90fc22248e7246f (
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
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: drakkan <nicola.murino at gmail dot com>
_android_arch=armv7a-eabi
pkgname=android-${_android_arch}-libtasn1
pkgver=4.19.0
pkgrel=2
pkgdesc="The ASN.1 library used in GNUTLS (Android ${_android_arch})"
arch=('any')
url="http://www.gnu.org/software/libtasn1"
license=("GPL3, LGPL")
depends=('android-ndk')
options=(!strip !buildflags staticlibs !emptydirs)
makedepends=('android-configure')
source=("http://ftp.gnu.org/gnu/libtasn1/libtasn1-${pkgver}.tar.gz")
sha256sums=('1613f0ac1cf484d6ec0ce3b8c06d56263cc7242f1c23b30d82d23de345a63f7a')
prepare() {
source android-env ${_android_arch}
check_ndk_version_ge_than 18.0
}
build() {
cd "${srcdir}/libtasn1-${pkgver}"
source android-env ${_android_arch}
export CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=2 -D__USE_FORTIFY_LEVEL=2"
export CPPFLAGS="${CPPFLAGS} -D_FORTIFY_SOURCE=2 -D__USE_FORTIFY_LEVEL=2"
android-${_android_arch}-configure \
--disable-doc
make $MAKEFLAGS
}
package() {
cd "${srcdir}/libtasn1-${pkgver}"
source android-env ${_android_arch}
make DESTDIR="$pkgdir" install
rm -r "${pkgdir}/${ANDROID_PREFIX_BIN}"
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a
}
|