updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / mvnsh / PKGBUILD
blob0b39df9c33f4a2d30033fbc209990552e77f7c05
1 # Maintainer: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2 # Source: https://github.com/nicoulaj/archlinux-packages
3 pkgname=mvnsh
4 pkgver=1.0.1
5 pkgrel=1
6 pkgdesc="Interactive CLI interface for Apache Maven."
7 arch=(i686 x86_64)
8 url="http://shell.sonatype.org"
9 license=('EPL')
10 depends=('java-environment>=5' 'bash')
11 changelog=Changelog
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')
15 package() {
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: