|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash |
|
|
|
|
# Build script for Slackware |
|
|
|
|
# Copyright (C) 2010 Damien Goutte-Gattat |
|
|
|
|
# Copyright (C) 2010,2013 Damien Goutte-Gattat |
|
|
|
|
# |
|
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
|
# is permitted provided that the following conditions are met: |
|
|
|
@ -27,9 +27,9 @@
|
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-apache-maven} |
|
|
|
|
VERSION=${VERSION:-2.2.1} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION-bin.tar.bz2} |
|
|
|
|
WGET=${WGET:-http://apache.cict.fr/maven/binaries/$ARCHIVE} |
|
|
|
|
VERSION=${VERSION:-3.0.5} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION-bin.tar.gz} |
|
|
|
|
WGET=${WGET:-http://apache.claz.org/maven/maven-3/$VERSION/binaries/$ARCHIVE} |
|
|
|
|
|
|
|
|
|
# Build infos |
|
|
|
|
NAMEPKG=${NAMEPKG:-apache-maven} |
|
|
|
@ -71,7 +71,6 @@ mv $NAME apache-maven
|
|
|
|
|
cd apache-maven |
|
|
|
|
mv *.txt $PKG/usr/doc/$NAME |
|
|
|
|
rm bin/*.bat |
|
|
|
|
chmod 644 conf/settings.xml lib/maven-$VERSION-uber.jar |
|
|
|
|
|
|
|
|
|
# Create symlinks in /usr/bin |
|
|
|
|
ln -s /usr/lib/apache-maven/bin/mvn $PKG/usr/bin/mvn |
|
|
|
|