diff options
author | Fantix King | 2012-10-18 08:46:53 +0000 |
---|---|---|
committer | Fantix King | 2015-11-18 14:16:44 +0800 |
commit | 8a8dc6e30164b796ddf1317923a3e60998aa690f (patch) | |
tree | 45e5357ba13573cec8174bbd7ee200539b799c8d /PKGBUILD | |
download | aur-8a8dc6e30164b796ddf1317923a3e60998aa690f.tar.gz |
5.3.21-1.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a0827401e263 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Upstream Maintainer: josephgbr <rafael.f.f1@gmail.com> +# Maintainer: Fantix King <fantix.king at gmail.com> + +_pkgbase=db +pkgname=libx32-${_pkgbase} +pkgver=5.3.21 +pkgrel=1.1 +pkgdesc="The Berkeley DB embedded database system (x32 ABI)" +arch=('x86_64') +url="http://www.oracle.com/technology/software/products/berkeley-db/index.html" +license=('custom') +depends=('libx32-gcc-libs' "${_pkgbase}") +makedepends=('gcc-multilib-x32') +options=('!libtool') +source=("http://download.oracle.com/berkeley-db/db-${pkgver}.tar.gz") +sha1sums=('32e43c4898c8996750c958a90c174bd116fcba83') + +build() { + export CC="gcc -mx32" + export CXX="g++ -mx32" + export PKG_CONFIG_PATH="/usr/libx32/pkgconfig" + + cd ${_pkgbase}-${pkgver}/build_unix + ../dist/configure \ + --prefix=/usr \ + --enable-compat185 \ + --enable-shared \ + --enable-static \ + --enable-cxx \ + --enable-dbm \ + --libdir=/usr/libx32 + make LIBSO_LIBS=-lpthread +} + +package() { + cd ${_pkgbase}-${pkgver}/build_unix + make DESTDIR="${pkgdir}" install + rm -r "${pkgdir}"/usr/{docs,include,bin} + + # install license + install -dm755 "$pkgdir"/usr/share/licenses + ln -s ${_pkgbase} "${pkgdir}"/usr/share/licenses/${pkgname} +} |