Update package version to 2.2.6
This commit is contained in:
@@ -1,8 +1,18 @@
|
|||||||
name: nim
|
name: nim
|
||||||
description: Statically typed compiled systems programming language
|
description: Statically typed compiled systems programming language
|
||||||
version: 2.2.4
|
version: 2.2.6
|
||||||
|
revision: 1
|
||||||
url: https://nim-lang.org/
|
url: https://nim-lang.org/
|
||||||
license: MIT
|
license: MIT
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["bash","gcc","gcc-libs","glibc"]
|
|
||||||
type: source
|
type: source
|
||||||
|
depends:
|
||||||
|
- bash
|
||||||
|
- gcc
|
||||||
|
- gcc-libs
|
||||||
|
- glibc
|
||||||
|
downloads:
|
||||||
|
- url: https://nim-lang.org/download/nim-${BPM_PKG_VERSION}.tar.xz
|
||||||
|
extract_to: ${BPM_SOURCE}
|
||||||
|
extract_strip_components: 1
|
||||||
|
checksum: 657b0e3d5def788148d2a87fa6123fa755b2d92cad31ef60fd261e451785528b
|
||||||
|
|||||||
@@ -2,15 +2,9 @@
|
|||||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||||
|
|
||||||
DOWNLOAD="https://nim-lang.org/download/nim-${BPM_PKG_VERSION}.tar.xz"
|
|
||||||
FILENAME="${DOWNLOAD##*/}"
|
|
||||||
|
|
||||||
# The prepare function is executed in the root of the temp directory
|
# The prepare function is executed in the root of the temp directory
|
||||||
# This function is used for downloading files and putting them into the correct location
|
# This function is used for putting downloaded files to the correct location or applying patches
|
||||||
prepare() {
|
prepare() {
|
||||||
wget "$DOWNLOAD"
|
|
||||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
|
||||||
|
|
||||||
cd "$BPM_SOURCE"
|
cd "$BPM_SOURCE"
|
||||||
for nimcfg in {compiler,config}/nim.cfg; do
|
for nimcfg in {compiler,config}/nim.cfg; do
|
||||||
echo "gcc.options.always %= \"\${gcc.options.always} ${CFLAGS:-} ${CPPFLAGS}\"" >> "$nimcfg"
|
echo "gcc.options.always %= \"\${gcc.options.always} ${CFLAGS:-} ${CPPFLAGS}\"" >> "$nimcfg"
|
||||||
|
|||||||
Reference in New Issue
Block a user