Date: Wednesday, March 14, 2018 @ 01:41:57
  Author: anthraxx
Revision: 307525

upgpkg: maven 3.5.2-1

Modified:
  maven/trunk/PKGBUILD

----------+
 PKGBUILD |   39 +++++++++++++++++++++------------------
 1 file changed, 21 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-03-14 01:20:30 UTC (rev 307524)
+++ PKGBUILD    2018-03-14 01:41:57 UTC (rev 307525)
@@ -1,36 +1,39 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Sergej Pupykin <pupykin.s+a...@gmail.com>
 # Contributor: William Rea <sillywi...@gmail.com>
 
 pkgname=maven
 pkgver=3.5.2
 pkgrel=1
-pkgdesc="A Java project management and project comprehension tool"
+pkgdesc='Java project management and project comprehension tool'
+url='https://maven.apache.org'
 arch=('any')
-url="http://maven.apache.org";
 license=('APACHE')
-depends=('java-environment')
+depends=('java-environment' 'bash')
 makedepends=('maven')
 backup=('opt/maven/conf/settings.xml')
-source=(http://apache-mirror.rbc.ru/pub/apache/maven/maven-3/$pkgver/source/apache-maven-$pkgver-src.tar.gz
-       maven.sh)
+source=(https://www-eu.apache.org/dist/maven/maven-3/${pkgver}/source/apache-maven-${pkgver}-src.tar.gz{,.asc}
+        maven.sh)
+validpgpkeys=('042B29E928995B9DB963C636C7CA19B7B620D787') # 
StephenConnolly<steph...@apache.org>
 sha256sums=('246653dd9920f87b54c67ff4651b32d78ac4d7da973c10a6c8b1c70d9e6d0305'
+            'SKIP'
             '24dc65607ff9e25c74ff2f75711911471910eaf415bce1856789c9d047209b8b')
 
 package() {
-  cd "$srcdir"/apache-maven-$pkgver
+  cd apache-maven-${pkgver}
 
   . /etc/profile.d/jre.sh
 
-  mkdir -p "$srcdir"/repo
-  mkdir -p "$pkgdir"/opt/maven
-  mkdir -p "$pkgdir"/usr/bin
+  install -d "${pkgdir}/opt/maven"
+  mvn package \
+    -Dmaven.repo.local="${srcdir}/repo" \
+    -DdistributionTargetDir="${pkgdir}/opt/maven" \
+    -Dproject.build.sourceEncoding=UTF-8
 
-  # FIXME: downloads many deps from Internet. Probably they should be
-  # packaged or added into source=()
-  mvn package -Dmaven.repo.local="$srcdir"/repo 
-DdistributionTargetDir="$pkgdir"/opt/maven
+  install -Dm 755 ../maven.sh -t "${pkgdir}/etc/profile.d"
+  install -d "${pkgdir}/usr/bin"
+  ln -s /opt/maven/bin/mvn "${pkgdir}/usr/bin/mvn"
+  ln -s /opt/maven/bin/mvnDebug "${pkgdir}/usr/bin/mvnDebug"
+}
 
-  install -D -m 755 "$srcdir"/maven.sh "$pkgdir"/etc/profile.d/maven.sh
-  ln -s /opt/maven/bin/mvn "$pkgdir"/usr/bin/mvn
-  ln -s /opt/maven/bin/mvnDebug "$pkgdir"/usr/bin/mvnDebug
-}
+# vim: ts=2 sw=2 et:

Reply via email to