diff options
author | Gonzalo Exequiel Pedone | 2024-02-26 19:28:40 -0300 |
---|---|---|
committer | Gonzalo Exequiel Pedone | 2024-02-26 19:28:40 -0300 |
commit | 4140c6c4ddfc8e1ae3165b318b0ed5325223d341 (patch) | |
tree | abb676bc24381268c345fbe1aa0514b53b99f8b9 | |
download | aur-4140c6c4ddfc8e1ae3165b318b0ed5325223d341.tar.gz |
New package.
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | PKGBUILD | 52 |
3 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0b6108786ee1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = android-x86-gdbm + pkgdesc = GNU database library (android) + pkgver = 1.19 + pkgrel = 1 + url = http://www.gnu.org/software/gdbm/gdbm.html + arch = any + license = GPL + makedepends = android-configure + depends = android-x86-gettext + depends = android-x86-libiconv + options = !strip + options = !buildflags + options = staticlibs + options = !emptydirs + source = https://ftp.gnu.org/gnu/gdbm/gdbm-1.19.tar.gz + sha256sums = 37ed12214122b972e18a0d94995039e57748191939ef74115b1d41d8811364bc + +pkgname = android-x86-gdbm diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..188dde609b65 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +pkg +src +*.tar.xz +*.tar.gz +*.tar.bz2 +*.tar.zst +*.asc diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..07304bdd2c40 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,52 @@ +# 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=x86 + +pkgname=android-${_android_arch}-gdbm +pkgver=1.19 +pkgrel=1 +arch=('any') +pkgdesc="GNU database library (android)" +url="http://www.gnu.org/software/gdbm/gdbm.html" +license=('GPL') +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") +sha256sums=('37ed12214122b972e18a0d94995039e57748191939ef74115b1d41d8811364bc') + +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" +} |