[arch-commits] Commit in sbt/repos/community-any (PKGBUILD PKGBUILD sbt.install)

Guillaume Alaux guillaume at archlinux.org
Wed Aug 16 13:22:13 UTC 2017


    Date: Wednesday, August 16, 2017 @ 13:22:12
  Author: guillaume
Revision: 251306

archrelease: copy trunk to community-any

Added:
  sbt/repos/community-any/PKGBUILD
    (from rev 251305, sbt/trunk/PKGBUILD)
  sbt/repos/community-any/sbt.install
    (from rev 251305, sbt/trunk/sbt.install)
Deleted:
  sbt/repos/community-any/PKGBUILD

-------------+
 PKGBUILD    |   88 +++++++++++++++++++++++++++++-----------------------------
 sbt.install |    8 +++++
 2 files changed, 52 insertions(+), 44 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2017-08-16 13:20:41 UTC (rev 251305)
+++ PKGBUILD	2017-08-16 13:22:12 UTC (rev 251306)
@@ -1,44 +0,0 @@
-# $Id$
-# Maintainer: Guillaume ALAUX <guillaume at archlinux.org>
-# Contributor: Andrea Scarpino <andrea at archlinux.org>
-# Contributor: Leif Warner <abimelech at gmail.com>
-
-pkgname=sbt
-epoch=1
-pkgver=1.0.0
-pkgrel=1
-pkgdesc='A build tool for Scala, Java, and more'
-arch=('any')
-url='http://www.scala-sbt.org/'
-license=('BSD')
-depends=('java-runtime-headless' 'sh')
-IFS='.' read -a _pkgver <<< "${pkgver}"
-_majorver=${_pkgver[0]}.x
-source=(https://github.com/${pkgname}/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tgz{,.asc}
-        https://raw.githubusercontent.com/${pkgname}/${pkgname}/${_majorver}/LICENSE)
-validpgpkeys=('2EE0EA64E40A89B84B2DF73499E82A75642AC823') # sbt build tool
-sha256sums=('9ae04f4972145f2ac56c4deb868c9a5bb8b8b85c5151885dff3b997712645c5a'
-            'SKIP'
-            '70b7b72694a56a3e922deaf5482273e7c33bab2c00c0c67fc0ccc5d33927ffed')
-#backup=(etc/${pkgname}/sbtopts)
-
-package() {
-  cd "${pkgname}"
-
-  mkdir -p "${pkgdir}"/usr/share/${pkgname}
-  cp -r lib "${pkgdir}"/usr/share/${pkgname}
-  cp -r bin "${pkgdir}"/usr/share/${pkgname}
-  rm "${pkgdir}"/usr/share/${pkgname}/bin/*.bat
-  chmod -x "${pkgdir}"/usr/share/${pkgname}/bin/*
-  chmod +x "${pkgdir}"/usr/share/${pkgname}/bin/sbt
-  mkdir -p "${pkgdir}"/usr/bin
-  ln -s /usr/share/${pkgname}/bin/sbt "${pkgdir}"/usr/bin/sbt
-
-  # FIXME move usr/share/conf to /etc/sbt but watch-out, pacman does not handle it well
-  # also enable its file as `backup`
-  install -D -m 644 conf/sbtopts -t "${pkgdir}"/usr/share/${pkgname}/conf
-  mkdir -p "${pkgdir}"/etc/${pkgname}
-  ln -s /usr/share/${pkgname}/conf/sbtopts "${pkgdir}"/etc/${pkgname}/sbtopts
-
-  install -D "${srcdir}"/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
-}

Copied: sbt/repos/community-any/PKGBUILD (from rev 251305, sbt/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-08-16 13:22:12 UTC (rev 251306)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Guillaume ALAUX <guillaume at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Leif Warner <abimelech at gmail.com>
+
+pkgname=sbt
+epoch=1
+pkgver=1.0.0
+pkgrel=1
+pkgdesc='The interactive build tool'
+arch=('any')
+url='http://www.scala-sbt.org/'
+license=('BSD')
+depends=('java-runtime-headless' 'sh')
+IFS='.' read -a _pkgver <<< "${pkgver}"
+_majorver=${_pkgver[0]}.x
+install=sbt.install
+source=(https://github.com/${pkgname}/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tgz{,.asc}
+        https://raw.githubusercontent.com/${pkgname}/${pkgname}/${_majorver}/LICENSE)
+validpgpkeys=('2EE0EA64E40A89B84B2DF73499E82A75642AC823') # sbt build tool
+sha256sums=('9ae04f4972145f2ac56c4deb868c9a5bb8b8b85c5151885dff3b997712645c5a'
+            'SKIP'
+            'c822d385b1a73329846241799becf18690b5d44764c1bed69300b536a405030a')
+backup=(etc/${pkgname}/sbtopts)
+
+package() {
+  cd "${pkgname}"
+
+  mkdir -p "${pkgdir}"/usr/share/${pkgname}
+  cp -r lib "${pkgdir}"/usr/share/${pkgname}
+  cp -r bin "${pkgdir}"/usr/share/${pkgname}
+  rm "${pkgdir}"/usr/share/${pkgname}/bin/*.bat
+  chmod -x "${pkgdir}"/usr/share/${pkgname}/bin/*
+  chmod +x "${pkgdir}"/usr/share/${pkgname}/bin/sbt
+  mkdir -p "${pkgdir}"/usr/bin
+  ln -s /usr/share/${pkgname}/bin/sbt "${pkgdir}"/usr/bin/sbt
+
+  mkdir -p "${pkgdir}/etc"
+  cp -r conf "${pkgdir}"/etc/${pkgname}
+  rm "${pkgdir}"/etc/${pkgname}/sbtconfig.txt
+  ln -s /etc/${pkgname} "${pkgdir}"/usr/share/${pkgname}/conf
+
+  install -D "${srcdir}"/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}

Copied: sbt/repos/community-any/sbt.install (from rev 251305, sbt/trunk/sbt.install)
===================================================================
--- sbt.install	                        (rev 0)
+++ sbt.install	2017-08-16 13:22:12 UTC (rev 251306)
@@ -0,0 +1,8 @@
+# Config file switch does not play well with Pacman so let's clear this
+pre_upgrade() {
+  conf_link='/etc/sbt/sbtopts'
+  if [ -L $conf_link ]; then
+    unlink $conf_link
+    cp /usr/share/sbt/conf/sbtopts $conf_link
+  fi
+}



More information about the arch-commits mailing list