PKGBUILDs/extra/libfbclient/PKGBUILD

61 lines
1.8 KiB
Bash
Raw Normal View History

2014-02-19 23:36:25 +00:00
# Maintainer: Carlier Laurent <lordheavym@gmail.com>
# Contributor: Douglas Soares de Andrade <dsa@aur.archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to link with atomic_ops
pkgname=libfbclient
2018-06-13 12:44:43 +00:00
pkgver=2.5.8.27089
2018-10-30 00:14:31 +00:00
pkgrel=3
2018-06-13 12:44:43 +00:00
pkgdesc="Client library for Firebird"
2017-11-17 23:24:30 +00:00
arch=('x86_64')
2014-02-19 23:36:25 +00:00
url="http://www.firebirdsql.org/"
license=('custom')
depends=('gcc-libs' 'icu')
options=('!makeflags')
2018-06-13 12:44:43 +00:00
source=(https://github.com/FirebirdSQL/firebird/releases/download/R2_5_8/Firebird-$pkgver-0.tar.bz2
2014-02-19 23:36:25 +00:00
link_atomic_ops.patch
LICENSE)
2018-06-13 12:44:43 +00:00
md5sums=('38862a3da39cf91f4f2366fb510f18a6'
2014-02-19 23:36:25 +00:00
'ca8e2c7a1fe0d3398f72d63a6c85422a'
'0d61798861e159c85dbdf0f30fe2f2ce')
2017-04-29 16:24:22 +00:00
prepare() {
2014-02-19 23:36:25 +00:00
cd $srcdir/Firebird-$pkgver-0
2018-08-08 19:28:00 +00:00
# libio.h is not installed by glibc >= 2.28
sed -i '/libio\.h/d' src/jrd/perf.h
2014-02-19 23:36:25 +00:00
patch -p1 -i ../link_atomic_ops.patch
2017-04-29 16:24:22 +00:00
}
build() {
cd $srcdir/Firebird-$pkgver-0
2014-02-19 23:36:25 +00:00
./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
2017-04-29 16:24:22 +00:00
CXXFLAGS+=' -fno-lifetime-dse' make
2014-02-19 23:36:25 +00:00
}
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
}