diff options
author | Firegem | 2021-11-24 20:11:57 -0500 |
---|---|---|
committer | Firegem | 2021-11-24 20:24:01 -0500 |
commit | 0e4807ff9824b4402565ab392d6924cf5485002e (patch) | |
tree | be5beb8cc60dc0e6bb4903eb778e08f8959e8b46 | |
parent | 18693295d3ec5f853827837849469fca779a6c2f (diff) | |
download | aur-0e4807ff9824b4402565ab392d6924cf5485002e.tar.gz |
first draft: more thorough build
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 43 | ||||
-rw-r--r-- | rlwrap-shim | 4 |
3 files changed, 42 insertions, 16 deletions
@@ -1,20 +1,25 @@ pkgbase = cbqn-git pkgdesc = A BQN implementation in C. - pkgver = r686.2baa9ac - pkgrel = 3 + pkgver = r704.0389eda + pkgrel = 1 url = https://github.com/dzaima/CBQN arch = x86_64 license = GPL3 + license = custom:ISC makedepends = git makedepends = clang depends = glibc - optdepends = rlwrap: Better REPL + depends = rlwrap optdepends = ttf-bqn386: BQN and APL compatible font provides = cbqn conflicts = cbqn source = cbqn::git+https://github.com/dzaima/CBQN.git + source = bqn-ref::git+https://github.com/mlochbaum/BQN.git source = makefile.patch + source = rlwrap-shim + md5sums = SKIP md5sums = SKIP md5sums = f23b43c3c37457cdb830eb7794ee945f + md5sums = 02cb8cb1a3f5832526614237a04de4de pkgname = cbqn-git @@ -1,21 +1,24 @@ # Maintainer: Firegem <mrfiregem [at] protonail [dot] ch> pkgname=cbqn-git -pkgver=r686.2baa9ac -pkgrel=3 +pkgver=r704.0389eda +pkgrel=1 pkgdesc="A BQN implementation in C." arch=('x86_64') url="https://github.com/dzaima/CBQN" -license=('GPL3') -depends=('glibc') -optdepends=('rlwrap: Better REPL' - 'ttf-bqn386: BQN and APL compatible font') +license=('GPL3' 'custom:ISC') +depends=('glibc' 'rlwrap') +optdepends=('ttf-bqn386: BQN and APL compatible font') makedepends=('git' 'clang') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") source=("${pkgname%-git}::git+${url}.git" - 'makefile.patch') + "bqn-ref::git+https://github.com/mlochbaum/BQN.git" + 'makefile.patch' + 'rlwrap-shim') md5sums=('SKIP' - 'f23b43c3c37457cdb830eb7794ee945f') + 'SKIP' + 'f23b43c3c37457cdb830eb7794ee945f' + '02cb8cb1a3f5832526614237a04de4de') pkgver() { cd "${srcdir}/${pkgname%-git}" @@ -28,12 +31,26 @@ prepare() { } build() { - cd "$srcdir/${pkgname%-git}" - make PIE='-pie' + cd "${srcdir}/${pkgname%-git}" + make PIE='-pie' o3 + ./BQN genRuntime "${srcdir}/bqn-ref" + make PIE='-pie' o3 +} + +check() { + cd "${srcdir}/${pkgname%-git}" + ./BQN "${srcdir}/bqn-ref/test/this.bqn" } package() { - cd "$srcdir/${pkgname%-git}" - install -Dm755 BQN "${pkgdir}/usr/bin/bqn" - install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + install -Dm755 ./rlwrap-shim "${pkgdir}/usr/bin/bqn" + + cd "${srcdir}/${pkgname%-git}" + install -Dm755 ./BQN "${pkgdir}/usr/share/${pkgname}/bqn" + install -Dm644 ./LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-cbqn" + + cd "$srcdir/bqn-ref" + install -Dm644 ./LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-bqn" + install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}/" ./tutorial/*.{md,bqn} + install -Dm644 -t "${pkgdir}/usr/share/${pkgname}" ./editors/inputrc } diff --git a/rlwrap-shim b/rlwrap-shim new file mode 100644 index 000000000000..a4748b4fffdd --- /dev/null +++ b/rlwrap-shim @@ -0,0 +1,4 @@ +#!/bin/sh +pkgdir=/usr/share/cbqn-git + +INPUTRC="${pkgdir}/inputrc" rlwrap "${pkgdir}/bqn" "$@" |