archrelease: copy trunk to extra-x86_64
[arch-packages.git] / gdbm / trunk / PKGBUILD
blob0b4c803377a5e219f2022809f6b57bed14bfcea0
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
3 # Contributor: Stéphane Gaudreault <stephane@archlinux.org>
4 # Contributor: Allan McRae <allan@archlinux.org>
5 # Contributor: judd <jvinet@zeroflux.org>
7 pkgname=gdbm
8 pkgver=1.23
9 pkgrel=2
10 pkgdesc="GNU database library"
11 arch=(x86_64)
12 url="https://www.gnu.org/software/gdbm/gdbm.html"
13 license=(GPL3)
14 depends=(glibc sh)
15 makedepends=(readline)
16 provides=(libgdbm_compat.so libgdbm.so)
17 source=(https://ftp.gnu.org/gnu/gdbm/$pkgname-$pkgver.tar.gz{,.sig})
18 sha512sums=('918080cb0225b221c11eb7339634a95e00c526072395f7a3d46ccf42ef020dea7c4c5bec34aff2c4f16033e1fff6583252b7e978f68b8d7f8736b0e025838e10'
19             'SKIP')
20 b2sums=('a47746577cf2f3c9b62faea496c4d6a50a8f1b0a5af448cb2215e90057c99b5b630ba3f5357c85dfb7fd98ba4e90969e30a779120c29106ed1e8736721f9bec1'
21         'SKIP')
22 validpgpkeys=('325F650C4C2B6AD58807327A3602B07F55D0C732') # Sergey Poznyakoff <gray@gnu.org>
24 prepare() {
25   cd $pkgname-$pkgver
26   autoreconf -fiv
29 build() {
30   local configure_options=(
31     --prefix=/usr
32     --enable-libgdbm-compat
33   )
35   cd $pkgname-$pkgver
36   ./configure "${configure_options[@]}"
37   make
40 check() {
41   make check -C $pkgname-$pkgver
44 package() {
45   depends+=(
46     readline libreadline.so
47   )
49   make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
50   install -vDm 644 $pkgname-$pkgver/{NOTE-WARNING,AUTHORS,NEWS,README,ChangeLog} -t "$pkgdir/usr/share/doc/$pkgname"