[arch-commits] Commit in (4 files)
Felix Yan
fyan at archlinux.org
Mon Sep 21 09:24:34 UTC 2015
Date: Monday, September 21, 2015 @ 11:24:34
Author: fyan
Revision: 141372
addpkg: freebasic 1.03.0-1
Added:
freebasic/
freebasic/repos/
freebasic/trunk/
freebasic/trunk/PKGBUILD
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Added: freebasic/trunk/PKGBUILD
===================================================================
--- freebasic/trunk/PKGBUILD (rev 0)
+++ freebasic/trunk/PKGBUILD 2015-09-21 09:24:34 UTC (rev 141372)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Jesse Jaara <gmail.com: jesse.jaara>
+# Contributor: rabyte <gmail.com: rabyte>
+
+pkgname=freebasic
+pkgver=1.03.0
+pkgrel=1
+pkgdesc="A free BASIC compiler"
+arch=('i686' 'x86_64')
+url="http://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_i686=("http://downloads.sourceforge.net/fbc/FreeBASIC-${pkgver}-linux-x86.tar.xz")
+source_x86_64=("http://downloads.sourceforge.net/fbc/FreeBASIC-${pkgver}-linux-x86_64.tar.xz")
+md5sums=('3b88d4ff2deacba26c5f43b5221bd5cf')
+md5sums_i686=('6d20df94ab8fe76c6936c6adf3dce9dc')
+md5sums_x86_64=('fd47aa49f04220a85a227f4c687fa377')
+
+prepare() {
+ [[ "$CARCH" = "x86_64" ]] && _arch=x86_64
+ [[ "$CARCH" = "i686" ]] && _arch=x86
+
+ 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 CFLAGS="$CFLAGS"
+ 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"
+}
Property changes on: freebasic/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list