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