summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5fc542435d045cc2f16e54052b61f1535dfe6a93 (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
# Maintainer: PQCraft <0456523@gmail.com>

pkgname=bcbasic
ghpkgname=BCBASIC
pkgver=0.1.3
pkgrel=1
pkgdesc="ByteCodeBASIC"
arch=(x86_64 i686 pentium4 arm armv6h armv7h aarch64)
url="https://github.com/PQCraft/${ghpkgname}"
license=(GPL3)
depends=('readline')
makedepends=('make' 'readline')
conflicts=(bcbasic-bin)
source=("${pkgname}-${pkgver}-${pkgrel}.tar.gz::https://github.com/PQCraft/${ghpkgname}/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('SKIP')

build() {
    cd "${srcdir}/${ghpkgname}-${pkgver}/"
    make -j$(nproc) build
}

check() {
    cd "${srcdir}/${ghpkgname}-${pkgver}/"
    [ -f ./bcbasic ]
}

package() {
    cd "${srcdir}/${ghpkgname}-${pkgver}/"
    install -Dm755 bcbasic -t "${pkgdir}/usr/bin/"
}