blob: 4a23528c79030d663893a7ae681f3fb524257fa6 (
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
|
# Generated by scripts/release/generate-pkgbuild-bin.sh. Do not edit.
# Maintainer: metaneutrons <https://github.com/metaneutrons>
pkgname=freebasic-ng-bin
pkgver=1.25.2
pkgrel=1
pkgdesc="FreeBASIC-NG compiler (prebuilt release)"
arch=('x86_64' 'aarch64')
url="https://github.com/metaneutrons/freebasic-ng"
license=('GPL-2.0-or-later' 'LGPL-2.1-or-later')
depends=('gcc' 'binutils' 'ncurses' 'libx11' 'libxext' 'libxpm' 'libxrandr' 'libxrender' 'gpm' 'libffi' 'libglvnd')
options=('staticlibs')
conflicts=('freebasic' 'freebasic-ng')
source=("freebasic-ng-$pkgver-source.tar.gz::https://github.com/metaneutrons/freebasic-ng/releases/download/v1.25.2/freebasic-ng-1.25.2-source.tar.gz")
source_x86_64=("freebasic-ng-$pkgver-linux-x86_64.tar.xz::https://github.com/metaneutrons/freebasic-ng/releases/download/v1.25.2/freebasic-ng-1.25.2-linux-x86_64.tar.xz")
source_aarch64=("freebasic-ng-$pkgver-linux-aarch64.tar.xz::https://github.com/metaneutrons/freebasic-ng/releases/download/v1.25.2/freebasic-ng-1.25.2-linux-aarch64.tar.xz")
sha256sums=('f598a3bb2f08fea46dca2d2cdd453904ebe19b123961c43ccdb603563315ea45')
sha256sums_x86_64=('5cdd663bf227c90ef543696960a82cc4f5506ba116e90223285170af16a63126')
sha256sums_aarch64=('94a0ea99e812d2ddc4ef001d61633b378ab01e2f9e7d9bcebc191f5ec9048acb')
package() {
local target root
case "$CARCH" in
x86_64) target=linux-x86_64 ;;
aarch64) target=linux-aarch64 ;;
*) echo "unsupported architecture: $CARCH" >&2; return 1 ;;
esac
root="freebasic-ng-$pkgver-$target"
[[ -x "$root/bin/fbc" ]] || { echo "missing $root/bin/fbc" >&2; return 1; }
install -d "$pkgdir/usr"
cp -a "$root/bin" "$pkgdir/usr/"
cp -a "$root/include" "$pkgdir/usr/"
cp -a "$root/lib" "$pkgdir/usr/"
install -Dm644 "freebasic-ng-$pkgver/LICENSE.md" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
}
|