Advertisement
Guest User

PKGBUILD for firebird-cs version 2.1.3

a guest
Oct 24th, 2010
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.07 KB | None | 0 0
  1. # Contributor: Artyom Smirnov <smirnoffjr@gmail.com>
  2.  
  3. pkgname=firebird-cs
  4. pkgver=2.1.3.18185
  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.         Firebird-2.1.3.18185-0-1.patch
  17.         LICENSE)
  18.  
  19. md5sums=('ec42bd5c85dc2f65baef185228bcc5ca'
  20.          'de79c09c72eaa5bf006bdaa7b35620b9'
  21.          'f1a28b66c3198f3f9c27c6d09459b55e'
  22.          '0d61798861e159c85dbdf0f30fe2f2ce')
  23.  
  24. build() {
  25.     _fbroot="$pkgdir/opt/firebird"
  26.     cd "$srcdir/Firebird-$pkgver-0"
  27.     echo `pwd`
  28.     patch -p0 -i ../Firebird-$pkgver-0-1.patch || return 1
  29.  
  30.     msg "Configuring to use classic server, compiling, making and instaling."
  31.     msg "Don't worry about the errors below."
  32.     ./configure --prefix=/opt/firebird --with-system-icu
  33.     make -j1 # bug in firebird makefiles (can't parallel build)
  34.  
  35.     msg "Now moving to the right place."
  36.     mkdir -p $_fbroot "$pkgdir"/etc/{xinetd,profile}.d
  37.     cp -R gen/firebird/* $_fbroot
  38.     install -m755 "$srcdir/firebird.sh" "$pkgdir/etc/profile.d"
  39.     install -m644 gen/install/misc/firebird.xinetd "$pkgdir/etc/xinetd.d/firebird"
  40.  
  41.     rm -rf $_fbroot/{lib,include,*.msg} # provided by libfbclient
  42.     mv $_fbroot/misc/firebird.conf $_fbroot
  43.     mv $_fbroot/misc/fbintl.conf $_fbroot/intl
  44.     mv $_fbroot/intl/{libfbintl.so,fbintl}
  45.     rm -rf $_fbroot/misc
  46.     mv $_fbroot/bin/{isql,fb_isql} # rename to avoid conflicts with unixodbc
  47.  
  48.     # fb_config must be provided by libfbclient
  49.     # all scripts needed updating to Arch
  50.     # static and boot binaries needed only during build
  51.     rm $_fbroot/bin/{*.sh,fb_config,*_static,*_boot,gpre_current,create_db,codes,build_file,blrtable} $_fbroot/isc_{lock,init}*
  52.  
  53.     msg "Installing the LICENSE"
  54.     install -D -m644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement