blob: d478f08a192f60ad88e0e8bbf52dcf6c9f13d853 (
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
50
51
52
53
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: Ilya Basin <basinilya at gmail dot com>
# Contributor: Andrew Sun <adsun701 at gmail dot com>
# Contributor: Aleksey Filippov <sarum9in at gmail dot com>
# Contributor: xantares <xantares09 at hotmail dot com>
_android_arch=aarch64
pkgname=android-${_android_arch}-gdbm
pkgver=1.24
pkgrel=1
arch=('any')
pkgdesc="GNU database library (Android ${_android_arch})"
url="http://www.gnu.org/software/gdbm/gdbm.html"
license=('GPL')
groups=('android-gdbm')
depends=("android-${_android_arch}-gettext"
"android-${_android_arch}-libiconv")
makedepends=('android-configure')
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://ftp.gnu.org/gnu/gdbm/gdbm-${pkgver}.tar.gz")
md5sums=('c780815649e52317be48331c1773e987')
prepare() {
cd "${srcdir}/gdbm-${pkgver}"
source android-env ${_android_arch}
autoreconf -vfi
}
build() {
cd "${srcdir}/gdbm-${pkgver}"
source android-env ${_android_arch}
android-${_android_arch}-configure \
--enable-libgdbm-compat
make $MAKEFLAGS
}
package() {
cd "${srcdir}/gdbm-${pkgver}"
source android-env ${_android_arch}
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}/${ANDROID_PREFIX_BIN}"
rm -rf "${pkgdir}/${ANDROID_PREFIX_SHARE}"
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a
# create symlinks for compatibility
install -dm755 "${pkgdir}/${ANDROID_PREFIX_INCLUDE}/gdbm"
ln -sf ../gdbm.h "${pkgdir}/${ANDROID_PREFIX_INCLUDE}/gdbm/gdbm.h"
}
|