blob: 97530b982806cf02e51c257d4d02034d6b39e296 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Maintainer: Frontier (frontier314 at gmail dot com)
pkgname=fbc-git
pkgver=1.09.0
pkgrel=1
_pkgname=fbc
_bootver=1.09.0
pkgdesc="FreeBASIC Compiler (Development version)"
arch=('i686' 'x86_64' 'aarch64' 'armv7h')
url="http://www.freebasic.net"
license=('GPL2' 'LGPL')
makedepends=('libffi' 'ncurses5-compat-libs')
provides=('fbc')
conflicts=('freebasic' 'fbc')
options=(staticlibs)
source=("$_pkgname"::'git+https://github.com/freebasic/fbc')
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
cut -c14-17 version.mk
}
prepare() {
if [ "$CARCH" = "i686" ]; then
_arch='x86'
fi
if [ "$CARCH" = "x86_64" ]; then
_arch='x86_64'
fi
if [ "$CARCH" = "aarch64" ]; then
_arch='aarch64'
fi
if [ "$CARCH" = "armv7h" ]; then
_arch='arm'
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/Binaries%20-%20Linux/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}/${_pkgname}"
make all
}
package() {
cd "${srcdir}/${_pkgname}"
make prefix="${pkgdir}/usr/" install
}
|