bc2d0e4d76
... /builddir/choosenim-0.7.4/nimarchive/nimarchive/archive.nim(36, 8) template/generic instantiation of `cImport` from here ... /usr/lib/nim/lib/system/fatal.nim(49, 5) Error: unhandled exception: cimport.nim(138, 16) `false` ... # Generated @ 2020-11-24T03:33:34+01:00 ... # Command line: ... # /tmp/.nimble/pkgs/nimterop-0.6.13/nimterop/toast --preprocess -m:c --pnim --symOverride=stat,dev_t,mode_t,archive_read_open_file,archive_write_open_file --nim:/usr/lib/nim/bin/nim --pluginSourcePath=/tmp/.cache/nim/nimterop/cPlugins/nimterop_1173585241.nim /builddir/choosenim-0.7.4/src/archive.h /builddir/choosenim-0.7.4/src/archive_entry.h -o /tmp/.cache/nim/nimterop/toastCache/nimterop_1397168449.nim ... Assertion failed: symbol < self->token_count (/tmp/.cache/nim/nimterop/nimterop/treesitter/lib/src/./language.c: ts_language_table_entry: 33)
62 lines
1.8 KiB
Bash
62 lines
1.8 KiB
Bash
# Template file for 'choosenim'
|
|
pkgname=choosenim
|
|
version=0.7.4
|
|
revision=2
|
|
hostmakedepends="git nim libressl-devel pkg-config"
|
|
makedepends="libressl-devel zlib-devel libarchive-devel"
|
|
depends="gcc"
|
|
short_desc="Nim toolchain installer"
|
|
maintainer="SolitudeSF <solitudesf@protonmail.com>"
|
|
license="MIT"
|
|
homepage="https://github.com/dom96/choosenim"
|
|
distfiles="${homepage}/archive/v${version}.tar.gz>choosenim-${version}.tar.gz
|
|
https://github.com/genotrance/nimarchive/archive/v0.5.4.tar.gz>nimarchive-0.5.4.tar.gz"
|
|
checksum="0e78a59cfb3cf7926f8dff3a4215949ccfaecd6c6dddc3b2e062098b5da03edb
|
|
c38e8c66c2eac2bc021d450f2b60d0e45c5355df963d0133930448639c0bd8d4"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
ppc-musl) broken="ftbfs" ;;
|
|
esac
|
|
|
|
post_extract() {
|
|
mv ../nimarchive-0.5.4 nimarchive
|
|
}
|
|
|
|
do_build() {
|
|
local arch args
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
aarch64*) arch=arm64;;
|
|
arm*) arch=arm;;
|
|
mips*) arch=mips;;
|
|
ppc64le*) arch=powerpc64el;;
|
|
ppc64*) arch=powerpc64;;
|
|
ppc*) arch=powerpc;;
|
|
esac
|
|
LDFLAGS+=" $($PKG_CONFIG --libs-only-l --static openssl)"
|
|
LDFLAGS+=" $($PKG_CONFIG --libs-only-l --static libarchive)"
|
|
LDFLAGS+=" -lrt -ldl"
|
|
: >nim.cfg
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
cat >>nim.cfg <<-EOF
|
|
gcc.options.always = "$CPPFLAGS $CFLAGS -pthread"
|
|
gcc.options.linker = "$LDFLAGS"
|
|
EOF
|
|
fi
|
|
if [ -n "$arch" ]; then
|
|
cat >>nim.cfg <<-EOF
|
|
$arch.linux.gcc.exe = "$CC"
|
|
$arch.linux.gcc.linkerexe = "$CC"
|
|
$arch.linux.gcc.options.always = "$CPPFLAGS $CFLAGS -pthread"
|
|
$arch.linux.gcc.options.linker = "$LDFLAGS"
|
|
EOF
|
|
args="--cpu:$arch"
|
|
fi
|
|
ln -sf $XBPS_CROSS_BASE/usr/include/archive.h src
|
|
ln -sf $XBPS_CROSS_BASE/usr/include/archive_entry.h src
|
|
nimble -y build -d:release --passC:-flto "$args" --path:$wrksrc/nimarchive
|
|
}
|
|
|
|
do_install() {
|
|
vbin bin/choosenim
|
|
vlicense LICENSE
|
|
}
|