Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

AUR freebasic PKGBUILD

By: dluciv on Jul 7th, 2014  |  syntax: Bash  |  size: 1.04 KB  |  views: 230  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor:  rabyte          <gmail.com: rabyte     >
  2. # Maintainer:   Jesse Jaara     <gmail.com: jesse.jaara>
  3.  
  4. pkgname=freebasic
  5. pkgver=0.90.1
  6. pkgrel=2
  7. pkgdesc="A free BASIC compiler"
  8. arch=('i686' 'x86_64')
  9. url="http://www.freebasic.net/"
  10. license=('GPL2' 'LGPL')
  11. [ "$CARCH" = "i686"   ] && depends=('gcc-libs' 'glibc' 'libxpm' 'ncurses' 'libxpm')
  12. [ "$CARCH" = "x86_64" ] && depends=('gcc-multilib' 'gcc-libs-multilib' 'lib32-glibc' 'libxpm' 'lib32-ncurses')
  13. options=(staticlibs)
  14. provides=('fbc')
  15. conflicts=('freebasic-examples')
  16. source=("http://sourceforge.net/projects/fbc/files/Binaries%20-%20Linux/FreeBASIC-${pkgver}-linux.tar.xz")
  17.  
  18. package() {
  19.   cd "${srcdir}/FreeBASIC-${pkgver}-linux"
  20.  
  21.   mkdir "${pkgdir}/usr"
  22.   ./install.sh -i "${pkgdir}/usr"
  23.  
  24.   mv "${pkgdir}"/usr/bin/fbc{,.bin}
  25.   mkdir -p "${pkgdir}/usr/share"
  26.   mv "${pkgdir}/usr/man" "${pkgdir}/usr/share/man"
  27.   echo -e "#!/bin/sh\nexec /usr/bin/fbc.bin -prefix /usr \"\${@}\"" > "${pkgdir}/usr/bin/fbc"
  28.   chmod +x "${pkgdir}/usr/bin/fbc"
  29. }
  30.  
  31. md5sums=('5a04ac65216beaa45749f87d6b5f48b6')