nim: update to 0.14.0

This commit is contained in:
allan 2016-06-07 17:16:00 +02:00
parent feef52067d
commit a4afbb2613
1 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,8 @@
# Template file for 'nim'
pkgname=nim
version=0.13.0
version=0.14.0
revision=1
_cversion=0.13.0
depends="gcc"
hostmakedepends="ed"
short_desc="The Nim programming language"
@ -9,15 +10,15 @@ maintainer="allan <mail@may.mooo.com>"
license="MIT"
homepage="http://nim-lang.org/"
distfiles="https://github.com/nim-lang/Nim/archive/v${version}.tar.gz
https://github.com/nim-lang/csources/archive/v${version}.tar.gz>csources.tar.gz"
checksum="52ccb73986faadb1abbf0d216cea95cf7d2f11ebed0b39e57150fe0c5be25ccf
https://github.com/nim-lang/csources/archive/v${_cversion}.tar.gz>csources.tar.gz"
checksum="b85f370e00d9fd2f3d53a3a2caa9b940fb858ff6937f737ad815be37077f432b
fe6aee48c5c2585eea14a7cb338bd3766e3d104a22195a79a53c35c8de371f64"
build_wrksrc=Nim-$version
create_wrksrc=yes
nopie=yes
post_extract() {
mv csources-$version $build_wrksrc/csources
mv csources-$_cversion $build_wrksrc/csources
}
do_build() {
@ -42,6 +43,7 @@ do_build() {
do_install() {
./koch install ${DESTDIR}/usr/lib
rm -rf ${DESTDIR}/usr/lib/nim/compiler/nim{,0,1,2,cache}
if [ "$CROSS_BUILD" ]; then
mv compiler/nim ${DESTDIR}/usr/lib/nim/bin/nim