diff options
author | Firegem | 2021-11-19 18:58:41 -0500 |
---|---|---|
committer | Firegem | 2021-11-19 18:58:41 -0500 |
commit | ae4979f3b3c955aed49d61a324068f343c233044 (patch) | |
tree | 5242800235d3d85290b78f6a0af4ebadcd6ffc55 | |
parent | dd3be8e39603ebc5c2e7b5832615a365c0c654dd (diff) | |
download | aur-ae4979f3b3c955aed49d61a324068f343c233044.tar.gz |
attempt fix namcap LDFLAGS warning
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 18 | ||||
-rw-r--r-- | makefile.patch | 11 |
3 files changed, 28 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = cbqn-git pkgdesc = A BQN implementation in C. pkgver = r686.2baa9ac - pkgrel = 1 + pkgrel = 2 url = https://github.com/dzaima/CBQN arch = x86_64 license = GPL3 @@ -10,9 +10,12 @@ pkgbase = cbqn-git makedepends = clang depends = glibc optdepends = rlwrap: Better REPL + optdepends = ttf-bqn386: BQN and APL compatible font provides = cbqn conflicts = cbqn source = cbqn::git+https://github.com/dzaima/CBQN.git + source = makefile.patch md5sums = SKIP + md5sums = f23b43c3c37457cdb830eb7794ee945f pkgname = cbqn-git @@ -1,27 +1,35 @@ # Maintainer: Firegem <mrfiregem [at] protonail [dot] ch> pkgname=cbqn-git pkgver=r686.2baa9ac -pkgrel=1 +pkgrel=2 pkgdesc="A BQN implementation in C." arch=('x86_64') url="https://github.com/dzaima/CBQN" license=('GPL3') depends=('glibc') -optdepends=('rlwrap: Better REPL') +optdepends=('rlwrap: Better REPL' + 'ttf-bqn386: BQN and APL compatible font') makedepends=('git' 'make' 'clang') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") -source=("${pkgname%-git}::git+${url}.git") -md5sums=('SKIP') +source=("${pkgname%-git}::git+${url}.git" + 'makefile.patch') +md5sums=('SKIP' + 'f23b43c3c37457cdb830eb7794ee945f') pkgver() { cd "${srcdir}/${pkgname%-git}" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } +prepare() { + cd "${srcdir}/${pkgname%-git}" + patch --forward --strip=1 --input="${srcdir}/makefile.patch" +} + build() { cd "$srcdir/${pkgname%-git}" - make LDFLAGS="${LDFLAGS}" + make PIE='-pie' } package() { diff --git a/makefile.patch b/makefile.patch new file mode 100644 index 000000000000..bd4cfb658ee0 --- /dev/null +++ b/makefile.patch @@ -0,0 +1,11 @@ +--- cbqn.old/makefile 2021-11-19 18:45:39.137888117 -0500 ++++ cbqn.new/makefile 2021-11-19 18:46:00.934817411 -0500 +@@ -91,7 +91,7 @@ + + + gen: builtins core base jit utils # build the final binary +- @$(CC) ${PIE} -o BQN ${bd}/*.o -lm ++ @$(CC) ${PIE} ${LDFLAGS} -o BQN ${bd}/*.o -lm + @echo ${postmsg} + + # build individual object files |