summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4d1840a7d1453c3ec62b9d1e87f89af765ffd917 (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.5
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/"
}