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