[arch-commits] Commit in ammonite/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Wed May 13 21:17:29 UTC 2020


    Date: Wednesday, May 13, 2020 @ 21:17:28
  Author: felixonmars
Revision: 627782

archrelease: copy trunk to community-any

Added:
  ammonite/repos/community-any/PKGBUILD
    (from rev 627781, ammonite/trunk/PKGBUILD)
Deleted:
  ammonite/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   64 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 35 insertions(+), 29 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-13 21:17:12 UTC (rev 627781)
+++ PKGBUILD	2020-05-13 21:17:28 UTC (rev 627782)
@@ -1,29 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Thayne <astrothayne at gmail dot com>
-# Contributor: Yiqiao Wang <yiqiao.wang96 at gmail dot com>
-# Contributor: wenLiangcan <boxeed at gmail dot com>
-
-pkgname=ammonite
-pkgver=2.1.2
-pkgrel=1
-pkgdesc="A cleanroom re-implementation of the Scala REPL from first principles. "
-arch=('any')
-url="https://github.com/lihaoyi/Ammonite"
-license=('MIT')
-_scalaver=2.13
-depends=('bash' "scala>=${_scalaver}" 'java-environment')
-source=("ammonite-repl-$pkgver"::"https://github.com/lihaoyi/Ammonite/releases/download/$pkgver/${_scalaver}-$pkgver"
-        "https://github.com/lihaoyi/Ammonite/raw/$pkgver/LICENSE")
-noextract=("ammonite-repl-$pkgver")
-b2sums=('d25906a5dbf92f6bdef91f9b2175a012e0589fc610747dc0b2424e670783856fe44b194803e8213c567aaa399ad5ef20a6283de9c672352d13894e65167b7cac'
-        'fc9694ff702a7c919b82c3429911dd0f4bf83ee36e7036bf5d82b62f3a1bc0dfb2bb80313ef89fa80353a7cf202bced4d942de25fdda789258753cd42633752d')
-
-prepare() {
-  echo '#!/bin/sh' > amm
-  cat ammonite-repl-$pkgver >> amm
-}
-
-package() {
-  install -Dm755 amm -t "$pkgdir"/usr/bin/
-  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-}

Copied: ammonite/repos/community-any/PKGBUILD (from rev 627781, ammonite/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-05-13 21:17:28 UTC (rev 627782)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Thayne <astrothayne at gmail dot com>
+# Contributor: Yiqiao Wang <yiqiao.wang96 at gmail dot com>
+# Contributor: wenLiangcan <boxeed at gmail dot com>
+
+pkgname=ammonite
+pkgver=2.1.2
+_scalaversion=2.13.2
+pkgrel=2
+pkgdesc="A cleanroom re-implementation of the Scala REPL from first principles. "
+arch=('any')
+url="https://github.com/lihaoyi/Ammonite"
+license=('MIT')
+depends=('bash' 'java-environment')
+makedepends=('mill')
+source=("https://github.com/lihaoyi/Ammonite/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+b2sums=('3dd2aa1382d021c6e2fa67c4a9fa782c01af1d7229d1e8b327af6c26c701eefb41f0f6705401cd3de7836150e72fffbd2e64d123864de39cb01a681b4b542433')
+
+prepare() {
+  cd Ammonite-$pkgver
+  sed -i "s/'git/'true/;s/^    \\.toInt$//" build.sc
+}
+
+build() {
+  cd Ammonite-$pkgver
+  TRAVIS_TAG=$pkgver mill -i amm[$_scalaversion].assembly
+}
+
+package() {
+  cd Ammonite-$pkgver
+  install -dm755 "$pkgdir"/usr/bin
+  (echo "#!/bin/sh"; cat out/amm/$_scalaversion/assembly/dest/out.jar) > "$pkgdir"/usr/bin/amm
+  chmod +x "$pkgdir"/usr/bin/amm
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}


More information about the arch-commits mailing list