nim: update to 1.4.2
Use fixed commit for fusion repo rather than relying on build-time git clone. (@ahesford) Closes: #26868 [via git-merge-pr]
This commit is contained in:
parent
7db4b81fbc
commit
db02a69556
1 changed files with 16 additions and 9 deletions
|
@ -1,9 +1,10 @@
|
|||
# Template file for 'nim'
|
||||
pkgname=nim
|
||||
version=1.2.6
|
||||
revision=2
|
||||
version=1.4.2
|
||||
revision=1
|
||||
_cversion=0.20.0
|
||||
_nimbleversion=0.11.4
|
||||
_nimbleversion=0.12.0
|
||||
_fusionversion=e942c649892b2ae3802851fba6bc5d251326e5fb
|
||||
create_wrksrc=yes
|
||||
build_wrksrc="Nim-$version"
|
||||
hostmakedepends="ed"
|
||||
|
@ -12,17 +13,21 @@ short_desc="Nim programming language"
|
|||
maintainer="allan <mail@may.mooo.com>"
|
||||
license="MIT"
|
||||
homepage="https://nim-lang.org/"
|
||||
distfiles="https://github.com/nim-lang/Nim/archive/v${version}.tar.gz
|
||||
https://github.com/nim-lang/csources/archive/v${_cversion}.tar.gz>csources-${_cversion}.tar.gz
|
||||
https://github.com/nim-lang/nimble/archive/v${_nimbleversion}.tar.gz>nimble-${_nimbleversion}.tar.gz"
|
||||
checksum="dbd5f1784ab121071aa7c58bb6b361cca79d12ac7524c761e27200e0c946e359
|
||||
_ghsite="https://github.com/nim-lang"
|
||||
distfiles="${_ghsite}/Nim/archive/v${version}.tar.gz
|
||||
${_ghsite}/csources/archive/v${_cversion}.tar.gz>csources-${_cversion}.tar.gz
|
||||
${_ghsite}/nimble/archive/v${_nimbleversion}.tar.gz>nimble-${_nimbleversion}.tar.gz
|
||||
${_ghsite}/fusion/archive/${_fusionversion}.tar.gz>fusion-${_fusionversion}.tar.gz"
|
||||
checksum="fc1e25aa2c667a34fe48160a79472fd5ced35af6478a535919d20b8821277a3a
|
||||
5e6fd15d90df1a8cb7614c4ffc70aa8c4198cd854d7742016202b96dd0228d3c
|
||||
63e0dbfa5c33f80d6f8f8156a609e11497ac5390b64dc8d68f5126c3bb8d5429"
|
||||
0b88d91a450f31641f85379f2d76afb0a013cf783e62144a6534525b9cb1cbac
|
||||
76d10a2f0f25ba7fb3393bdb800c75e8084758d8ce69e63d07926cd36f555084"
|
||||
|
||||
post_extract() {
|
||||
mv csources-$_cversion $build_wrksrc/csources
|
||||
mkdir $build_wrksrc/dist
|
||||
mv nimble-$_nimbleversion $build_wrksrc/dist/nimble
|
||||
mv fusion-$_fusionversion $build_wrksrc/dist/fusion
|
||||
}
|
||||
|
||||
do_build() {
|
||||
|
@ -95,8 +100,10 @@ do_install() {
|
|||
cp bin/$_f ${DESTDIR}/usr/lib/nim/bin
|
||||
ln -sf /usr/lib/nim/bin/$_f ${DESTDIR}/usr/bin/$_f
|
||||
done
|
||||
cp -r doc examples ${DESTDIR}/usr/lib/nim
|
||||
cp -r nimsuggest nimpretty doc examples ${DESTDIR}/usr/lib/nim
|
||||
ln -sf /usr/lib/nim/doc ${DESTDIR}/usr/share/nim/doc
|
||||
ln -sf /usr/lib/nim/examples ${DESTDIR}/usr/share/nim/examples
|
||||
ln -sf /usr/lib/nim/nimsuggest ${DESTDIR}/usr/share/nim/nimsuggest
|
||||
ln -sf /usr/lib/nim/nimpretty ${DESTDIR}/usr/share/nim/nimpretty
|
||||
vlicense copying.txt
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue