Package Details: mvnvm 1.0.26-1

Git Clone URL: https://aur.archlinux.org/mvnvm.git (read-only, click to copy)
Package Base: mvnvm
Description: Maven version manager
Upstream URL: https://bitbucket.org/mjensen/mvnvm/
Licenses: Apache
Conflicts: maven
Provides: maven
Submitter: ajknoll
Maintainer: adsun (alibkord)
Last Packager: adsun
Votes: 7
Popularity: 0.173620
First Submitted: 2015-06-30 06:37 (UTC)
Last Updated: 2023-12-04 23:42 (UTC)

Dependencies (1)

Required by (203)

Sources (1)

Latest Comments

adsun commented on 2022-03-01 12:50 (UTC)

@psYchotic done. Thanks for the suggestion.

psYchotic commented on 2021-12-13 22:33 (UTC)

I was personally looking for mvnDebug, which this package doesn't include. May I suggest the following diff to remedy this?

diff --git a/PKGBUILD b/PKGBUILD
index b0b003a..1de1fb3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@

 pkgname=mvnvm
 pkgver=1.0.15
-pkgrel=1
+pkgrel=2
 pkgdesc="Maven version manager"
 arch=('any')
 url="https://mvnvm.org/"
@@ -11,10 +11,14 @@ license=('Apache')
 depends=('sh')
 conflicts=('maven')
 provides=('maven')
-source=("${pkgname}-${pkgver}"::"https://bitbucket.org/mjensen/mvnvm/raw/mvnvm-${pkgver}/mvn")
-sha256sums=('aca72679f08349f756c5d62fd36d3dd67f25e937b8cd2045b0edd0f91efbee18')
+source=("https://bitbucket.org/mjensen/mvnvm/get/${pkgname}-${pkgver}.tar.bz2")
+noextract=("${pkgname}-${pkgver}.tar.bz2")
+sha256sums=('2909ed8718facd876d541edc18a447c484c72cb4a221b938f33f4cb317d5235d')
+
+prepare() {
+  tar --strip-components 1 -C "${srcdir}" -xf "${pkgname}-${pkgver}.tar.bz2"
+}

 package() {
-  mkdir -p ${pkgdir}/usr/bin
-  install -Dm755 "${srcdir}/${pkgname}-${pkgver}" ${pkgdir}/usr/bin/mvn
+  install -D -m 755 -t "${pkgdir}/usr/bin" "${srcdir}/mvn"{,Debug}
 }

I'm not really happy about having to use noextract, but that's the only I way I know how to "unwrap" the contents of the first directory (which contains a shorthash of the commit corresponding to the release) in the archive downloaded from Bitbucket.

aspirogrammer commented on 2017-04-20 00:53 (UTC)

Is it possible to update this package so that it interoperates with https://aur.archlinux.org/packages/maven-bash-completion-git/? (This package should probably provide "maven"?)