[arch-commits] Commit in freebasic/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Fri Nov 9 21:34:55 UTC 2018


    Date: Friday, November 9, 2018 @ 21:34:54
  Author: foutrelis
Revision: 404688

archrelease: copy trunk to community-staging-x86_64

Added:
  freebasic/repos/community-staging-x86_64/
  freebasic/repos/community-staging-x86_64/PKGBUILD
    (from rev 404686, freebasic/trunk/PKGBUILD)

----------+
 PKGBUILD |   40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

Copied: freebasic/repos/community-staging-x86_64/PKGBUILD (from rev 404686, freebasic/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-11-09 21:34:54 UTC (rev 404688)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Jesse Jaara <gmail.com: jesse.jaara>
+# Contributor: rabyte <gmail.com: rabyte>
+
+pkgname=freebasic
+pkgver=1.05.0
+pkgrel=3
+pkgdesc="A free BASIC compiler"
+arch=('x86_64')
+url="https://www.freebasic.net/"
+license=('GPL2' 'LGPL')
+depends=('ncurses')
+makedepends=('libxpm' 'gpm' 'libffi' 'libxrandr' 'mesa')
+source=("https://downloads.sourceforge.net/fbc/FreeBASIC-$pkgver-source.tar.xz")
+source_x86_64=("https://downloads.sourceforge.net/fbc/FreeBASIC-${pkgver}-linux-x86_64.tar.xz")
+md5sums=('a0b89405678c831af2d28e566758aeae')
+md5sums_x86_64=('4bf93ad31b378df4897699a5a0744b11')
+
+prepare() {
+  [[ "$CARCH" = "x86_64" ]] && _arch=x86_64
+
+  mkdir -p bootstrap
+  cd "${srcdir}/FreeBASIC-${pkgver}-linux-$_arch"
+  ./install.sh -i "${srcdir}/bootstrap"
+  # Hack!
+  ln -s /usr/lib/libncursesw.so "${srcdir}/bootstrap/lib/libtinfo.so.5"
+}
+
+build() {
+  export PATH="${srcdir}/bootstrap/bin:$PATH"
+  export LD_LIBRARY_PATH="${srcdir}/bootstrap/lib"
+
+  cd "${srcdir}/FreeBASIC-${pkgver}-source"
+  make CFLAGS="$CFLAGS $(pkg-config --cflags libffi)"
+}
+
+package() {
+  cd "${srcdir}/FreeBASIC-${pkgver}-source"
+  make install prefix="${pkgdir}/usr"
+}


More information about the arch-commits mailing list