mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
46 lines
1.3 KiB
Bash
46 lines
1.3 KiB
Bash
# $Id$
|
|
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
|
# Contributor: William Rea <sillywilly@gmail.com>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - patch to increase build timeout
|
|
|
|
pkgname=maven
|
|
pkgver=3.2.3
|
|
pkgrel=1
|
|
pkgdesc="A Java project management and project comprehension tool"
|
|
arch=('any')
|
|
url="http://maven.apache.org"
|
|
license=('APACHE')
|
|
depends=('java-environment')
|
|
makedepends=('apache-ant')
|
|
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
|
|
timeout.patch)
|
|
md5sums=('d1991e64c7a9f6f294ec17d2eab362d6'
|
|
'5ed0bddbf5c5375fe5032a76a9506426'
|
|
'7ddbe22786ce1f2fd5740f91c1026e53')
|
|
|
|
package() {
|
|
cd $srcdir/apache-maven-$pkgver
|
|
|
|
patch -p1 -i ../timeout.patch
|
|
|
|
. /etc/profile.d/jre.sh
|
|
. /etc/profile.d/jdk.sh
|
|
|
|
mkdir -p $srcdir/repo
|
|
mkdir $pkgdir/opt
|
|
export MAVEN_OPTS=-Xmx512m
|
|
export M2_HOME=$pkgdir/opt/maven
|
|
export PATH=$PATH:$M2_HOME/bin
|
|
|
|
# FIXME: downloads many deps from Internet. Probably they should be
|
|
# packaged or added into source=()
|
|
ant -Dmaven.repo.local=$srcdir/repo
|
|
install -D -m 755 $srcdir/maven.sh $pkgdir/etc/profile.d/maven.sh
|
|
rm $pkgdir/opt/maven/*.txt
|
|
mkdir -p $pkgdir/usr/bin
|
|
ln -s /opt/maven/bin/mvn $pkgdir/usr/bin/mvn
|
|
}
|