nim: add distfiles+checksum
This commit is contained in:
parent
74b049f289
commit
d9b2912b6a
1 changed files with 8 additions and 6 deletions
|
@ -1,21 +1,23 @@
|
|||
# Template file for 'nim'
|
||||
pkgname=nim
|
||||
version=0.11.2
|
||||
revision=1
|
||||
revision=2
|
||||
_csources_commit=c2c13f5a60dc635d1a9746e630cfb127348430cb
|
||||
depends="gcc"
|
||||
hostmakedepends="libzip git ed"
|
||||
hostmakedepends="libzip ed"
|
||||
short_desc="The Nim programming language"
|
||||
maintainer="allan <mail@may.mooo.com>"
|
||||
license="MIT"
|
||||
homepage="http://nim-lang.org/"
|
||||
distfiles="https://github.com/Araq/Nim/archive/v${version}.tar.gz"
|
||||
checksum=8b46ca59461f870471060dcaff535c7203937c7ae67856f1ba027d000b5fa4c6
|
||||
distfiles="https://github.com/nim-lang/Nim/archive/v${version}.tar.gz
|
||||
http://github.com/nim-lang/csources/archive/$_csources_commit.tar.gz"
|
||||
checksum="8b46ca59461f870471060dcaff535c7203937c7ae67856f1ba027d000b5fa4c6
|
||||
876d730d2a7c034b82626d892c65e1b26caa30bc4471c40067a56dc4404a2cfd"
|
||||
wrksrc=Nim-$version
|
||||
|
||||
post_extract() {
|
||||
cd $wrksrc
|
||||
test -d csources ||
|
||||
git clone --depth=1 https://github.com/nim-lang/csources
|
||||
test -d csources || cp -r ../csources-$_csources_commit csources
|
||||
}
|
||||
|
||||
do_build() {
|
||||
|
|
Loading…
Reference in a new issue