1 # Maintainer: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2 # Source: https://github.com/nicoulaj/archlinux-packages
6 pkgdesc="Interactive CLI interface for Apache Maven."
8 url="http://shell.sonatype.org"
10 depends=('java-environment>=5' 'bash')
12 source=(http://search.maven.org/remotecontent?filepath=org/sonatype/maven/shell/dist/mvnsh-assembly/$pkgver/mvnsh-assembly-$pkgver-bin.tar.gz)
13 md5sums=('5b0f47c8838aa7525f454f2bca9dbed9')
16 msg2 "Install the assembly at /usr/share/java/${pkgname}..."
17 install -dm755 ${pkgdir}/usr/share/java/${pkgname}
18 cp -r ${srcdir}/${pkgname}-${pkgver}/* ${pkgdir}/usr/share/java/$pkgname
20 msg2 "Install links to documentation resources at /usr/share/doc/${pkgname}..."
21 install -dm755 ${pkgdir}/usr/share/doc/${pkgname}
22 ln -s /usr/share/java/${pkgname}/README.txt ${pkgdir}/usr/share/doc/${pkgname}/
23 ln -s /usr/share/java/${pkgname}/examples ${pkgdir}/usr/share/doc/${pkgname}/
25 msg2 "Install links to copyright resources at /usr/share/licenses/${pkgname}..."
26 install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
27 ln -s /usr/share/java/${pkgname}/LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/
28 ln -s /usr/share/java/${pkgname}/NOTICE.txt ${pkgdir}/usr/share/licenses/${pkgname}/
30 msg2 "Install links to executables in /usr/bin..."
31 # NOTE The package provides 'mvnsh', 'mvn' and 'mvnDebug', but only
32 # 'mvnsh' is symlinked. Should the other ones too ? This would
33 # make the package provide+conflict with 'maven' and 'maven2'.
34 install -dm755 ${pkgdir}/usr/bin
35 ln -s /usr/share/java/${pkgname}/bin/mvnsh ${pkgdir}/usr/bin/
38 # vim:set ts=2 sw=2 et: