diff options
author | Gonzalo Exequiel Pedone | 2024-02-29 00:55:51 -0300 |
---|---|---|
committer | Gonzalo Exequiel Pedone | 2024-02-29 00:55:51 -0300 |
commit | f7f53439bac0a2971b207dfb109d1c1044088274 (patch) | |
tree | 4a10b2adaeb3490fb3c57f1960e42d7c522f9601 /PKGBUILD | |
download | aur-android-armv7a-eabi-unixodbc.tar.gz |
New package.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..86600ea33d3b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# 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=armv7a-eabi + +pkgname=android-${_android_arch}-unixodbc +pkgver=2.3.12 +pkgrel=1 +arch=('any') +pkgdesc="ODBC is an open specification for providing application developers with a predictable API with which to access Data Sources (android)" +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} + + android-${_android_arch}-configure + 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 +} |