/firebird-classic/PKGBUILD

https://bitbucket.org/axil42/aur-mirror · #! · 52 lines · 45 code · 7 blank · 0 comment · 0 complexity · e302c90abfda32b36968ff81b0b8319f MD5 · raw file

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