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

Felix Yan felixonmars at archlinux.org
Tue Jul 7 16:11:58 UTC 2020


    Date: Tuesday, July 7, 2020 @ 16:11:57
  Author: felixonmars
Revision: 659160

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: freebasic/repos/community-staging-x86_64/PKGBUILD (from rev 659158, freebasic/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 16:11:57 UTC (rev 659160)
@@ -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.07.1
+pkgrel=2
+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=('e1ecda91c89cfa28398df97f72c08481')
+md5sums_x86_64=('de8d546ec6b07a1bb7e1ac69e2cc8663')
+
+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