diff options
Diffstat (limited to 'community/libfbclient/PKGBUILD')
-rw-r--r-- | community/libfbclient/PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/community/libfbclient/PKGBUILD b/community/libfbclient/PKGBUILD new file mode 100644 index 000000000..44cb112af --- /dev/null +++ b/community/libfbclient/PKGBUILD @@ -0,0 +1,47 @@ +# $Id: PKGBUILD 88481 2013-04-18 13:13:14Z lcarlier $ +# Maintainer: Carlier Laurent <lordheavym@gmail.com> +# Contributor: Douglas Soares de Andrade <dsa@aur.archlinux.org> + +pkgname=libfbclient +pkgver=2.5.2.26540 +pkgrel=1 +pkgdesc="Client library for Firebird." +arch=('i686' 'x86_64') +url="http://www.firebirdsql.org/" +license=('custom') +depends=('gcc-libs' 'icu') +options=('!makeflags') +source=(http://downloads.sourceforge.net/firebird/Firebird-$pkgver-0.tar.bz2 + LICENSE) +md5sums=('21154d2004e025c8a3666625b0357bb5' + '0d61798861e159c85dbdf0f30fe2f2ce') + +build() { + cd $srcdir/Firebird-$pkgver-0 + + ./configure --prefix=/usr --with-system-icu --without-fbudf \ + --without-fbsbin --without-fbconf --without-fbdoc --without-fbsample \ + --without-fbsample-db --without-fbintl --without-fbmisc --without-fbhelp \ + --without-fbsecure-db --with-fbmsg=/usr/share/firebird --without-fblog \ + --without-fbglock --without-fbplugins + + make +} + +package() { + cd $srcdir/Firebird-$pkgver-0 + + mkdir -p $pkgdir/usr/{bin,share/{firebird,licenses/$pkgname}} + + cp -R gen/firebird/{lib,include} $pkgdir/usr + rm -f $pkgdir/usr/lib/libedit.a + + install -m644 gen/firebird/*.msg $pkgdir/usr/share/firebird + install -m755 gen/firebird/bin/fb_config $pkgdir/usr/bin + install -m644 ${srcdir}/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE + + # Add libgds support FS#30062 FS#30282 + cd $pkgdir/usr/lib + ln -s libfbclient.so libgds.so.0 + ln -s libfbclient.so libgds.so +} |