Last active
January 15, 2025 08:54
-
-
Save djblue/c894f06ac8d88ddf684345d3cdf49544 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: djblue (gmail) | |
pkgname=jank-git | |
_gitname=jank | |
pkgver=3d8316a2 | |
pkgrel=1 | |
epoch=2 | |
pkgdesc="The native Clojure dialect hosted on LLVM" | |
arch=('i686' 'x86_64' 'arm') | |
url="https://github.com/jank-lang/jank" | |
license=('MPL-2.0 license') | |
depends=( | |
'llvm' | |
'boost' | |
'libzip' | |
'lbzip2' | |
) | |
optdepends=( | |
'doctest' | |
'entr' | |
) | |
makedepends=( | |
'git' | |
'git-lfs' | |
'clang' | |
'pkg-config' | |
'cmake' | |
'ninja' | |
'make' | |
'python3' | |
'libffi' | |
) | |
checkdepends=( | |
'doctest' | |
) | |
options=(!lto) | |
provides=( | |
'jank' | |
'jank-git' | |
) | |
conflicts=( | |
'jank' | |
'jank-git' | |
) | |
source=( | |
"git+https://github.com/jank-lang/jank.git" | |
) | |
backup=() | |
b2sums=('SKIP') | |
pkgver() { | |
cd "$_gitname" | |
git rev-parse --short HEAD | |
} | |
prepare() { | |
cd "$_gitname" | |
git submodule update --recursive --init | |
} | |
build() { | |
cd "$_gitname/compiler+runtime" | |
export CXXFLAGS+=" ${CPPFLAGS}" | |
./bin/configure -GNinja -DCMAKE_BUILD_TYPE=Release -Wno-dev | |
./bin/compile | |
} | |
package() { | |
cd "$_gitname"/compiler+runtime | |
DESTDIR="$pkgdir" ./bin/install --strip | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment