[arch-commits] Commit in sbt/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Sun Aug 26 15:18:13 UTC 2018
Date: Sunday, August 26, 2018 @ 15:18:12
Author: felixonmars
Revision: 374362
archrelease: copy trunk to community-testing-any
Added:
sbt/repos/community-testing-any/
sbt/repos/community-testing-any/LICENSE
(from rev 374361, sbt/trunk/LICENSE)
sbt/repos/community-testing-any/PKGBUILD
(from rev 374361, sbt/trunk/PKGBUILD)
sbt/repos/community-testing-any/sbt.install
(from rev 374361, sbt/trunk/sbt.install)
-------------+
LICENSE | 25 +++++++++++++++++++++++++
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
sbt.install | 8 ++++++++
3 files changed, 77 insertions(+)
Copied: sbt/repos/community-testing-any/LICENSE (from rev 374361, sbt/trunk/LICENSE)
===================================================================
--- community-testing-any/LICENSE (rev 0)
+++ community-testing-any/LICENSE 2018-08-26 15:18:12 UTC (rev 374362)
@@ -0,0 +1,25 @@
+Copyright (c) 2008-2014 Typesafe Inc, Mark Harrah, Grzegorz Kossakowski, Josh Suereth, Indrajit Raychaudhuri, Eugene Yokota, and other contributors.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+3. The name of the author may not be used to endorse or promote products
+ derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
Copied: sbt/repos/community-testing-any/PKGBUILD (from rev 374361, sbt/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2018-08-26 15:18:12 UTC (rev 374362)
@@ -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.2.1
+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}
+ LICENSE)
+validpgpkeys=('2EE0EA64E40A89B84B2DF73499E82A75642AC823') # sbt build tool
+sha512sums=('086ee7c193df76c90ac6ab468d6fbbe3e22fd62d2718457d7d8fac60b4a7508ae32ad3e71ea3d0efa176450b8fe62334d6411ec4bc268c1c16a48c11d2f4f380'
+ 'SKIP'
+ '49fefd36f8e3e796efd2b95aec76781832f64163445b6ebba624e385446bcbd308e27a82770b5e7b1ce7d4cd406d771549f0a121f1310611c92b3e15bff209d0')
+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-testing-any/sbt.install (from rev 374361, sbt/trunk/sbt.install)
===================================================================
--- community-testing-any/sbt.install (rev 0)
+++ community-testing-any/sbt.install 2018-08-26 15:18:12 UTC (rev 374362)
@@ -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