Update package for AUR4 and fix PKGBUILD issues

This commit is contained in:
Raansu
2015-08-01 06:16:57 -07:00
commit ebabd9cdb1
2 changed files with 55 additions and 0 deletions

17
.SRCINFO Normal file
View File

@@ -0,0 +1,17 @@
pkgbase = db4.8
pkgdesc = The Berkeley DB embedded database system 4.8
pkgver = 4.8.30
pkgrel = 3
url = http://www.oracle.com/technology/software/products/berkeley-db/index.html
arch = i686
arch = x86_64
license = custom
depends = gcc-libs
options = !libtool
options = !makeflags
source = http://download.oracle.com/berkeley-db/db-4.8.30.tar.gz
md5sums = f80022099c5742cd179343556179aa8c
sha1sums = ab36c170dda5b2ceaad3915ced96e41c6b7e493c
pkgname = db4.8

38
PKGBUILD Normal file
View File

@@ -0,0 +1,38 @@
# New maintainer: Raansu <Gero3977@gmail.com>
# OLD Contributor: Leslie P. Polzer <polzer@gnu.org>
pkgname=db4.8
pkgver=4.8.30
pkgrel=3
pkgdesc="The Berkeley DB embedded database system 4.8"
arch=('i686' 'x86_64')
license=('custom')
url="http://www.oracle.com/technology/software/products/berkeley-db/index.html"
depends=('gcc-libs')
options=('!libtool' '!makeflags')
source=(http://download.oracle.com/berkeley-db/db-${pkgver}.tar.gz)
package() {
cd ${srcdir}/db-${pkgver}/
cd build_unix
../dist/configure --prefix=/usr --enable-compat185 \
--enable-shared --disable-static --enable-cxx
make LIBSO_LIBS=-lpthread || return 1
make prefix=${pkgdir}/usr \
includedir=${pkgdir}/usr/include/db4.8 install
rm -rf ${pkgdir}/usr/docs
rm -f ${pkgdir}/usr/lib/libdb{,_cxx}.so
rm -f ${pkgdir}/usr/lib/libdb{,_cxx}-4.so
cd ${pkgdir}/usr/bin
for i in *; do
mv $i db4.8_${i/db_/}
done
mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}
install -m644 ${srcdir}/db-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
md5sums=('f80022099c5742cd179343556179aa8c')
sha1sums=('ab36c170dda5b2ceaad3915ced96e41c6b7e493c')