updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / firebird-cs / PKGBUILD
blob2d701524b6460c3f970f4b8d7d88f90e39b76025
1 # Contributor: Artyom Smirnov <smirnoffjr@gmail.com>
3 pkgname=firebird-cs
4 pkgver=2.1.2.18118
5 pkgdesc="Firebird RDBMS (Classic Server)"
6 pkgrel=2
7 arch=('i686' 'x86_64')
8 url="http://www.firebirdsql.org/"
9 license=('custom')
10 depends=("libfbclient=$pkgver" "icu" "xinetd")
11 makedepends=("gcc" "autoconf" "automake")
12 conflicts=("firebird-ss")
13 provides=("firebird")
14 source=(http://downloads.sourceforge.net/firebird/Firebird-$pkgver-0.tar.bz2
15         firebird.sh
16         LICENSE)
18 md5sums=('063b3825a06d328f726b733fd74614b1'
19          'de79c09c72eaa5bf006bdaa7b35620b9'
20          '0d61798861e159c85dbdf0f30fe2f2ce')
22 build() {
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}
41     rm -rf $_fbroot/misc
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"