summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorFantix King2015-11-07 15:39:18 +0800
committerFantix King2015-11-18 14:52:39 +0800
commit009c09c45f8dc83a9c50bb942d3643bf7e982efc (patch)
tree626246eeb1c48f0b68872b955340191979be30c9 /PKGBUILD
parenta817c73bf73747f69e799a71a79ece5afdbefa82 (diff)
downloadaur-009c09c45f8dc83a9c50bb942d3643bf7e982efc.tar.gz
1.11-1.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD81
1 files changed, 35 insertions, 46 deletions
diff --git a/PKGBUILD b/PKGBUILD
index bbae516511b..adbbccb017f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,59 +1,48 @@
-# Upstream Maintainer: josephgbr <rafael.f.f1 at gmail.com>
-# Contributor: Maribu <leonidas200 at web dot de>
-# Maintainer: Fantix King <fantix.king at gmail.com>
+# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
+# Contributor: josephgbr <rafael.f.f1@gmail.com>
+# Contributor: Maribu <leonidas200@web.de>
+# x32 Maintainer: Fantix King <fantix.king at gmail.com>
-_pkgbase=gdbm
-pkgname=libx32-$_pkgbase
-pkgver=1.10
+pkgname=libx32-gdbm
+pkgver=1.11
pkgrel=1.1
pkgdesc="GNU database library (x32 ABI)"
-license=('GPL')
-url="http://www.gnu.org/software/gdbm/gdbm.html"
arch=('x86_64')
-depends=('libx32-glibc' "$_pkgbase")
+url='http://www.gnu.org/software/gdbm/gdbm.html'
+license=('GPL')
+depends=('gdbm' 'libx32-glibc')
makedepends=('gcc-multilib-x32')
-source=(ftp://ftp.gnu.org/gnu/gdbm/${_pkgbase}-${pkgver}.tar.gz
- gdbm-1.10-zeroheaders.patch)
-options=('!libtool' '!makeflags')
-md5sums=('88770493c2559dc80b561293e39d3570'
- '2a5979910c338dabda6935263b3d8af9')
-
-build() {
- export CC='gcc -mx32'
-
- cd "${srcdir}/${_pkgbase}-${pkgver}"
-
- # Prevent gdbm from storing uninitialized memory content
- # to database files. This patch improves security, as the
- # uninitialized memory might contain sensitive informations
- # from other applications.
- # https://bugzilla.redhat.com/show_bug.cgi?id=4457
- # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=208927
- patch -Np1 -i ../gdbm-1.10-zeroheaders.patch
+source=("ftp://ftp.gnu.org/gnu/gdbm/gdbm-${pkgver}.tar.gz"
+ 'gdbm-1.10-zeroheaders.patch')
+options=('!makeflags')
+sha256sums=('8d912f44f05d0b15a4a5d96a76f852e905d051bb88022fcdfd98b43be093e3c3'
+ 'fb4b3b3c05e85584c2d8f1af38c63219a3fb2aa152743ae6a6396e6952becc5c')
- ./configure --prefix=/usr \
- --mandir=/usr/share/man \
- --infodir=/usr/share/info \
- --enable-libgdbm-compat \
- --libdir=/usr/libx32
+prepare() {
+ cd gdbm-${pkgver}
- make prefix=/usr
+ patch -Np1 -i ../gdbm-1.10-zeroheaders.patch
}
-check() {
- cd "${srcdir}/${_pkgbase}-${pkgver}"
- make check
+build() {
+ cd gdbm-${pkgver}
+
+ export CC='gcc -mx32'
+ export CXX='g++ -mx32'
+ export PKG_CONFIG_PATH='/usr/libx32/pkgconfig'
+
+ ./configure \
+ --prefix='/usr' \
+ --libdir='/usr/libx32' \
+ --enable-libgdbm-compat
+ make
}
package() {
- cd "${srcdir}/${_pkgbase}-${pkgver}"
-
- make prefix="$pkgdir/usr" \
- manprefix="$pkgdir/usr/share/man" \
- man3dir="$pkgdir/usr/share/man/man3" \
- infodir="$pkgdir/usr/share/info" \
- libdir="$pkgdir/usr/libx32" \
- install
-
- rm -rf "${pkgdir}/usr"/{bin,share,include}
+ cd gdbm-${pkgver}
+
+ make DESTDIR="${pkgdir}" install
+ rm -rf "${pkgdir}"/usr/{bin,share,include}
}
+
+# vim: ts=2 sw=2 et: