[arch-commits] Commit in nim/repos/community-x86_64 (PKGBUILD PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Thu Jul 16 20:57:13 UTC 2020


    Date: Thursday, July 16, 2020 @ 20:57:13
  Author: anthraxx
Revision: 664185

archrelease: copy trunk to community-x86_64

Added:
  nim/repos/community-x86_64/PKGBUILD
    (from rev 664184, nim/trunk/PKGBUILD)
Deleted:
  nim/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  216 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 108 insertions(+), 108 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-16 20:57:09 UTC (rev 664184)
+++ PKGBUILD	2020-07-16 20:57:13 UTC (rev 664185)
@@ -1,108 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Contributor: Alexander F Rødseth <xyproto at archlinux.org>
-# Contributor: Dominik Picheta <morfeusz8 at gmail.com>
-# Contributor: Sven-Hendrik Haase <sh at lutzhaase.com>
-# Contributor: Jesus Alvarez <jeezusjr at gmail.com>
-
-pkgname=nim
-_pkgname=Nim
-pkgver=1.2.0
-_csourcesver=0.20.0
-pkgrel=1
-pkgdesc='Imperative, multi-paradigm, compiled programming language'
-url='https://nim-lang.org/'
-arch=('x86_64')
-license=('MIT')
-depends=('bash')
-makedepends=('git')
-optdepends=('nimble: Nim package manager')
-options=('!emptydirs')
-backup=(
-  etc/nim/nim.cfg
-  etc/nim/nimdoc.cfg
-  etc/nim/nimdoc.tex.cfg
-  etc/nim/rename.rules.cfg
-)
-source=(https://github.com/nim-lang/Nim/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz
-        https://github.com/nim-lang/csources/archive/v${_csourcesver}/csources-${_csourcesver}.tar.gz)
-sha256sums=('0920fe06b724de03ace28ec63db2e71734c1ab77499cafe08289bce25be8d8a4'
-            '5e6fd15d90df1a8cb7614c4ffc70aa8c4198cd854d7742016202b96dd0228d3c')
-b2sums=('32b0425129c25348b9def0a117492be6e6f5cf8ad40187ab8c4f9a98bd4a80a3ba126d69f4406eb7d5ee80f38a9fc33f56f33aa7eaa219c84b3937b3aa675e65'
-        'a1c026aa4ecd676d938d00f13f749b7c21094f87de98055ef0002bc96cafb81a780b7d82adfa3927bb32b0eb52c8047ac2b2c98d0ab3b9af0dd8c8ebeffad50b')
-
-prepare() {
-  cd ${_pkgname}-${pkgver}
-  mv ../csources-${_csourcesver} csources
-  rm bin/empty.txt
-  for nimcfg in {compiler,config}/nim.cfg; do
-    echo "gcc.options.always %= \"\${gcc.options.always} ${CFLAGS:-} ${CPPFLAGS}\"" >> "${nimcfg}"
-    echo "gcc.options.linker %= \"\${gcc.options.linker} ${LDFLAGS:-}\"" >> "${nimcfg}"
-  done
-}
-
-build() {
-  cd ${_pkgname}-${pkgver}
-  export PATH="${srcdir}/${_pkgname}-${pkgver}/bin:${PATH}"
-
-  msg2 "Building nim"
-  (cd csources
-    sh build.sh
-  )
-  msg2 "Building koch"
-  nim c -d:release koch
-  ./koch boot -d:release -d:nativeStacktrace -d:useGnuReadline
-
-  msg2 "Building libs"
-  (cd lib
-    nim c --app:lib -d:createNimRtl -d:release nimrtl.nim
-  )
-
-  msg2 "Building tools"
-  ./koch tools
-  (cd tools
-    nim c -d:release nimgrep.nim
-  )
-  msg2 "Building nimsuggest"
-  nim c -d:release nimsuggest/nimsuggest.nim
-}
-
-package() {
-  cd ${_pkgname}-${pkgver}
-  export PATH="${srcdir}/${_pkgname}-${pkgver}/bin:${PATH}"
-
-  ./koch install "${pkgdir}"
-
-  install -d "${pkgdir}/usr/lib"
-  cp -a lib "${pkgdir}/usr/lib/nim"
-  cp -a compiler "${pkgdir}/usr/lib/nim"
-  install -Dm 644 compiler.nimble "${pkgdir}/usr/lib/nim/compiler"
-  install -m 755 lib/libnimrtl.so "${pkgdir}/usr/lib/libnimrtl.so"
-
-  # Fix FS#48118, related to the doc2 command
-  ln -s /usr/share/nim/doc "${pkgdir}/usr/lib/nim/doc"
-
-  install -Dm 644 config/* -t "${pkgdir}/etc/nim"
-  install -Dm 755 bin/* -t "${pkgdir}/usr/bin"
-
-  # Fix FS#50252, unusual placement of header files
-  install -d "${pkgdir}/usr/include"
-  cp -a "${pkgdir}/usr/lib/nim/"*.h "${pkgdir}/usr/include"
-
-  install -d "${pkgdir}/usr/share/nim/doc"
-  cp -a examples doc/* "${pkgdir}/usr/share/nim/doc"
-
-  install -Dm 644 copying.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
-
-  # completions
-  for comp in tools/*.bash-completion; do
-    install -Dm 644 "${comp}" "${pkgdir}/usr/share/bash-completion/completions/$(basename "${comp/.bash-completion}")"
-  done
-  for comp in tools/*.zsh-completion; do
-    install -Dm 644 "${comp}" "${pkgdir}/usr/share/zsh/site-functions/_$(basename "${comp/.zsh-completion}")"
-  done
-
-  rm -r "${pkgdir}/nim"
-  rm "${pkgdir}/usr/bin/nimble"
-}
-
-# vim: ts=2 sw=2 et:

Copied: nim/repos/community-x86_64/PKGBUILD (from rev 664184, nim/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-07-16 20:57:13 UTC (rev 664185)
@@ -0,0 +1,108 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Dominik Picheta <morfeusz8 at gmail.com>
+# Contributor: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Jesus Alvarez <jeezusjr at gmail.com>
+
+pkgname=nim
+_pkgname=Nim
+pkgver=1.2.4
+_csourcesver=0.20.0
+pkgrel=1
+pkgdesc='Imperative, multi-paradigm, compiled programming language'
+url='https://nim-lang.org/'
+arch=('x86_64')
+license=('MIT')
+depends=('bash')
+makedepends=('git')
+optdepends=('nimble: Nim package manager')
+options=('!emptydirs')
+backup=(
+  etc/nim/nim.cfg
+  etc/nim/nimdoc.cfg
+  etc/nim/nimdoc.tex.cfg
+  etc/nim/rename.rules.cfg
+)
+source=(https://github.com/nim-lang/Nim/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz
+        https://github.com/nim-lang/csources/archive/v${_csourcesver}/csources-${_csourcesver}.tar.gz)
+sha256sums=('1449469c1d29b990de110b32370170509fd16fe171744acd06d62b9a2e0ca84f'
+            '5e6fd15d90df1a8cb7614c4ffc70aa8c4198cd854d7742016202b96dd0228d3c')
+b2sums=('ed842c1b1d516c5e69f78f7449af01f70118dcb86be331fa1d463fa290bb8e4e2dca4f636efa73a5c8ec77658ed3ecf311eca5bbaf9436b5249088accf4f0dd6'
+        'a1c026aa4ecd676d938d00f13f749b7c21094f87de98055ef0002bc96cafb81a780b7d82adfa3927bb32b0eb52c8047ac2b2c98d0ab3b9af0dd8c8ebeffad50b')
+
+prepare() {
+  cd ${_pkgname}-${pkgver}
+  mv ../csources-${_csourcesver} csources
+  rm bin/empty.txt
+  for nimcfg in {compiler,config}/nim.cfg; do
+    echo "gcc.options.always %= \"\${gcc.options.always} ${CFLAGS:-} ${CPPFLAGS}\"" >> "${nimcfg}"
+    echo "gcc.options.linker %= \"\${gcc.options.linker} ${LDFLAGS:-}\"" >> "${nimcfg}"
+  done
+}
+
+build() {
+  cd ${_pkgname}-${pkgver}
+  export PATH="${srcdir}/${_pkgname}-${pkgver}/bin:${PATH}"
+
+  msg2 "Building nim"
+  (cd csources
+    sh build.sh
+  )
+  msg2 "Building koch"
+  nim c -d:release koch
+  ./koch boot -d:release -d:nativeStacktrace -d:useGnuReadline
+
+  msg2 "Building libs"
+  (cd lib
+    nim c --app:lib -d:createNimRtl -d:release nimrtl.nim
+  )
+
+  msg2 "Building tools"
+  ./koch tools
+  (cd tools
+    nim c -d:release nimgrep.nim
+  )
+  msg2 "Building nimsuggest"
+  nim c -d:release nimsuggest/nimsuggest.nim
+}
+
+package() {
+  cd ${_pkgname}-${pkgver}
+  export PATH="${srcdir}/${_pkgname}-${pkgver}/bin:${PATH}"
+
+  ./koch install "${pkgdir}"
+
+  install -d "${pkgdir}/usr/lib"
+  cp -a lib "${pkgdir}/usr/lib/nim"
+  cp -a compiler "${pkgdir}/usr/lib/nim"
+  install -Dm 644 compiler.nimble "${pkgdir}/usr/lib/nim/compiler"
+  install -m 755 lib/libnimrtl.so "${pkgdir}/usr/lib/libnimrtl.so"
+
+  # Fix FS#48118, related to the doc2 command
+  ln -s /usr/share/nim/doc "${pkgdir}/usr/lib/nim/doc"
+
+  install -Dm 644 config/* -t "${pkgdir}/etc/nim"
+  install -Dm 755 bin/* -t "${pkgdir}/usr/bin"
+
+  # Fix FS#50252, unusual placement of header files
+  install -d "${pkgdir}/usr/include"
+  cp -a "${pkgdir}/usr/lib/nim/"*.h "${pkgdir}/usr/include"
+
+  install -d "${pkgdir}/usr/share/nim/doc"
+  cp -a examples doc/* "${pkgdir}/usr/share/nim/doc"
+
+  install -Dm 644 copying.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+
+  # completions
+  for comp in tools/*.bash-completion; do
+    install -Dm 644 "${comp}" "${pkgdir}/usr/share/bash-completion/completions/$(basename "${comp/.bash-completion}")"
+  done
+  for comp in tools/*.zsh-completion; do
+    install -Dm 644 "${comp}" "${pkgdir}/usr/share/zsh/site-functions/_$(basename "${comp/.zsh-completion}")"
+  done
+
+  rm -r "${pkgdir}/nim"
+  rm "${pkgdir}/usr/bin/nimble"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list