blob: fe782e91b8aaa03914af29c3d8efc2609780d5dd (
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
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: AndyRTR <andyrtr@archlinux.org>
# Contributor: Judd Vinet <jvinet@zeroflux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
_android_arch=aarch64
pkgname=android-${_android_arch}-unixodbc
pkgver=2.3.12
pkgrel=2
arch=('any')
pkgdesc="ODBC is an open specification for providing application developers with a predictable API with which to access Data Sources (Android, ${_android_arch})"
license=('GPL2' 'LGPL2.1')
url="http://www.unixodbc.org/"
depends=("android-${_android_arch}-readline"
"android-${_android_arch}-libltdl")
options=(!strip !buildflags staticlibs !emptydirs)
source=("ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-$pkgver.tar.gz")
sha256sums=('f210501445ce21bf607ba51ef8c125e10e22dffdffec377646462df5f01915ec')
build() {
cd "${srcdir}/unixODBC-${pkgver}"
source android-env ${_android_arch}
if [ "${ANDROID_MINIMUM_PLATFORM}" -lt 24 ]; then
if [[ "${_android_arch}" = armv7a-eabi || "${_android_arch}" = x86 ]]; then
configopts=--disable-largefile
fi
fi
android-${_android_arch}-configure ${configopts}
make $MAKEFLAGS
}
package() {
cd "${srcdir}/unixODBC-${pkgver}"
source android-env ${_android_arch}
make DESTDIR="${pkgdir}" install
rm -rf "$pkgdir/${ANDROID_PREFIX_BIN}"
rm -rf "$pkgdir/${ANDROID_PREFIX_ETC}"
rm -rf "$pkgdir/${ANDROID_PREFIX_SHARE}"
${ANDROID_STRIP} -g "$pkgdir"/${ANDROID_PREFIX_LIB}/*.a
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}"/${ANDROID_PREFIX_LIB}/*.so
}
|