updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / firebird-classic / PKGBUILD
blob121dcaf4da0acf9621fbfe9a7adcfad3901ce30d
1 # Contributor: Ido Kanner <idokan@gmail.com>
3 pkgname=firebird-classic
4 pkgver=2.5.0.26074
5 pkgdesc="Firebird RDBMS (Classic Server)"
6 pkgrel=1
7 arch=('i686' 'x86_64')
8 url="http://www.firebirdsql.org/"
9 license=('custom')
10 depends=("libfbclient=$pkgver" "icu" "gcc-libs" "xinetd")
11 makedepends=("gcc" "autoconf" "automake")
12 conflicts=("firebird-superserver")
13 provides=("firebird")
14 source=(http://downloads.sourceforge.net/firebird/Firebird-$pkgver-0.tar.bz2
15         firebird.sh
16         LICENSE)
17 md5sums=('780f162ee71f087fc277adf09f966529'
18          'de79c09c72eaa5bf006bdaa7b35620b9'
19          '0d61798861e159c85dbdf0f30fe2f2ce')
21 build() {
22     _fbroot="$pkgdir/opt/firebird"
23     cd "$srcdir/Firebird-$pkgver-0"
25     msg "Configuring to use classic server, compiling, making and instaling."
26     msg "Don't worry about the errors below."
27     ./configure --prefix=/opt/firebird --with-system-icu --with-system-editline 
28     make -j1 # bug in firebird makefiles (can't parallel build)
30     msg "Now moving to the right place."
31     mkdir -p $_fbroot "$pkgdir"/etc/{rc,profile}.d
32     cp -R gen/firebird/* $_fbroot
33     install -m755 "$srcdir/firebird.sh" "$pkgdir/etc/profile.d"
34     mkdir -p "$pkgdir/etc/xinetd.d/"
35     cp gen/install/misc/firebird.xinetd "$pkgdir/etc/xinetd.d/firebird"
36     chmod 664 "$pkgdir/etc/xinetd.d/firebird"
38     rm -rf $_fbroot/{lib,include,*.msg} # provided by libfbclient
39     mv gen/install/misc/firebird.conf $_fbroot
40     mv gen/install/misc/fbintl.conf $_fbroot/intl
41     mv $_fbroot/intl/{libfbintl.so,fbintl}
42     rm -rf $_fbroot/misc
43     mv $_fbroot/bin/{isql,fb_isql} # rename to avoid conflicts with unixodbc
45    # # fb_config must be provided by libfbclient
46    # # all scripts needed updating to Arch
47    # # static and boot binaries needed only during build
48     rm $_fbroot/bin/{*.sh,fb_config,*_static,*_boot,gpre_current,create_db,codes,build_file,blrtable} 
50     msg "Installing the LICENSE"
51     install -D -m644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"