[arch-commits] Commit in sbt/trunk (PKGBUILD)

Guillaume Alaux guillaume at archlinux.org
Mon Aug 14 15:50:21 UTC 2017


    Date: Monday, August 14, 2017 @ 15:50:21
  Author: guillaume
Revision: 250399

Upstream release 1.0.0

Modified:
  sbt/trunk/PKGBUILD

----------+
 PKGBUILD |   24 +++++++++++++++---------
 1 file changed, 15 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-08-14 12:50:47 UTC (rev 250398)
+++ PKGBUILD	2017-08-14 15:50:21 UTC (rev 250399)
@@ -5,7 +5,7 @@
 
 pkgname=sbt
 epoch=1
-pkgver=0.13.13
+pkgver=1.0.0
 pkgrel=1
 pkgdesc='A build tool for Scala, Java, and more'
 arch=('any')
@@ -13,23 +13,29 @@
 license=('BSD')
 depends=('java-runtime-headless' 'sh')
 IFS='.' read -a _pkgver <<< "${pkgver}"
-source=(https://dl.bintray.com/${pkgname}/native-packages/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tgz{,.asc}
-        https://raw.githubusercontent.com/${pkgname}/${pkgname}/${_pkgver[0]}.${_pkgver[1]}/LICENSE)
+_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=('40d03d21a260c5a6a43f8349298f41c9d047f97972057d9d915afd8945faf979'
+sha256sums=('9ae04f4972145f2ac56c4deb868c9a5bb8b8b85c5151885dff3b997712645c5a'
             'SKIP'
             '70b7b72694a56a3e922deaf5482273e7c33bab2c00c0c67fc0ccc5d33927ffed')
+#backup=(etc/${pkgname}/sbtopts)
 
 package() {
-  cd "${srcdir}/${pkgname}-launcher-packaging-${pkgver}"
+  cd "${pkgname}"
 
-  mkdir -p "${pkgdir}"/usr/share/${pkgname}/bin
-  install -m 644 bin/sbt-launch.jar -t "${pkgdir}"/usr/share/${pkgname}/bin
-  install -m 755 bin/sbt -t "${pkgdir}"/usr/share/${pkgname}/bin
+  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
-  install -m 644 bin/sbt-launch-lib.bash -t "${pkgdir}"/usr/share/${pkgname}/bin
 
+  # 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



More information about the arch-commits mailing list