1 # Contributor: Artyom Smirnov <smirnoffjr@gmail.com>
5 pkgdesc="Firebird RDBMS (Classic Server)"
8 url="http://www.firebirdsql.org/"
10 depends=("libfbclient=$pkgver" "icu" "xinetd")
11 makedepends=("gcc" "autoconf" "automake")
12 conflicts=("firebird-ss")
14 source=(http://downloads.sourceforge.net/firebird/Firebird-$pkgver-0.tar.bz2
18 md5sums=('063b3825a06d328f726b733fd74614b1'
19 'de79c09c72eaa5bf006bdaa7b35620b9'
20 '0d61798861e159c85dbdf0f30fe2f2ce')
23 _fbroot="$pkgdir/opt/firebird"
24 cd "$srcdir/Firebird-$pkgver-0"
26 msg "Configuring to use classic server, compiling, making and instaling."
27 msg "Don't worry about the errors below."
28 ./configure --prefix=/opt/firebird --with-system-icu
29 make -j1 # bug in firebird makefiles (can't parallel build)
31 msg "Now moving to the right place."
32 mkdir -p $_fbroot "$pkgdir"/etc/{xinetd,profile}.d
33 cp -R gen/firebird/* $_fbroot
34 install -m755 "$srcdir/firebird.sh" "$pkgdir/etc/profile.d"
35 install -m644 gen/install/misc/firebird.xinetd "$pkgdir/etc/xinetd.d/firebird"
37 rm -rf $_fbroot/{lib,include,*.msg} # provided by libfbclient
38 mv $_fbroot/misc/firebird.conf $_fbroot
39 mv $_fbroot/misc/fbintl.conf $_fbroot/intl
40 mv $_fbroot/intl/{libfbintl.so,fbintl}
42 mv $_fbroot/bin/{isql,fb_isql} # rename to avoid conflicts with unixodbc
44 # fb_config must be provided by libfbclient
45 # all scripts needed updating to Arch
46 # static and boot binaries needed only during build
47 rm $_fbroot/bin/{*.sh,fb_config,*_static,*_boot,gpre_current,create_db,codes,build_file,blrtable} $_fbroot/isc_{lock,init}*
49 msg "Installing the LICENSE"
50 install -D -m644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"