diff options
author | Frontier | 2015-06-08 15:39:09 +0300 |
---|---|---|
committer | Frontier | 2015-06-08 15:39:09 +0300 |
commit | 88c233bf8a9247ad4cf7e9b33c591d3beac44bad (patch) | |
tree | a4226b3dd039341af73890aab53dc1c1ff908d0f | |
download | aur-88c233bf8a9247ad4cf7e9b33c591d3beac44bad.tar.gz |
Initial import to aur4
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 44 |
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7bbee9bbea03 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = fbc + pkgdesc = FreeBASIC Compiler (Release version) + pkgver = 1.02 + pkgrel = 3 + url = http://www.freebasic.net + arch = i686 + arch = x86_64 + license = GPL2 + license = LGPL + makedepends = libffi + makedepends = libffi-compat + makedepends = libtinfo + provides = fbc + conflicts = freebasic + conflicts = fbc-git + options = staticlibs + source = https://downloads.sourceforge.net/fbc/FreeBASIC-1.02.1-source.tar.gz + sha256sums = SKIP + +pkgname = fbc + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ce4f073ca7f6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Frontier (frontier314 at gmail dot com) + +pkgname=fbc +pkgver=1.02 +pkgrel=3 +_bootver=1.02.1 +pkgdesc="FreeBASIC Compiler (Release version)" +arch=('i686' 'x86_64') +url="http://www.freebasic.net" +license=('GPL2' 'LGPL') +makedepends=('libffi' 'libffi-compat' 'libtinfo') +provides=('fbc') +conflicts=('freebasic' 'fbc-git') +options=(staticlibs) +source=("https://downloads.sourceforge.net/fbc/FreeBASIC-${_bootver}-source.tar.gz") +sha256sums=('SKIP') + +prepare() { +if [ "$CARCH" = "i686" ]; then +_arch='x86' +fi + +if [ "$CARCH" = "x86_64" ]; then +_arch='x86_64' +fi + +warning "Setting up libffi compatibility headers (run update-libffi-compat as root if build fails)" +warning "Downloading bootstrap fbc compiler" +cd "${srcdir}" +wget http://downloads.sourceforge.net/fbc/FreeBASIC-${_bootver}-linux-${_arch}.tar.gz +tar xzf FreeBASIC-${_bootver}-linux-${_arch}.tar.gz +cd FreeBASIC-${_bootver}-linux-${_arch} +export PATH=`pwd`/bin:${PATH} +} + +build() { +cd "${srcdir}/FreeBASIC-${_bootver}-source" +make all +} + +package() { +cd "${srcdir}/FreeBASIC-${_bootver}-source" +make prefix="${pkgdir}/usr/" install +} |