milis/talimatname/genel/apache-ant/talimat

34 lines
831 B
Plaintext
Raw Normal View History

# Description: Ant paketi Java tabanlı bir inşa aracıdır.
2016-02-24 01:27:23 +01:00
# URL: http://ant.apache.org/
2017-01-30 23:55:06 +01:00
# Packager: milisarge
# Depends on: glib openjdk
2016-02-24 01:27:23 +01:00
name=apache-ant
version=1.9.6
release=1
2017-01-30 23:55:06 +01:00
source=(http://archive.apache.org/dist/ant/source/$name-$version-src.tar.bz2
2016-02-24 01:27:23 +01:00
http://hamcrest.googlecode.com/files/hamcrest-1.3.tgz
http://anduin.linuxfromscratch.org/sources/other/junit-4.11.jar)
2017-01-30 23:55:06 +01:00
2016-02-24 01:27:23 +01:00
build() {
cd $name-$version
mv ../hamcrest-1.3 .
cp -v ../junit-4.11.jar \
hamcrest-1.3/hamcrest-core-1.3.jar lib/optional
mkdir -p $PKG/opt/ant-$version
./build.sh -Ddist.dir=$PKG/opt/ant-$version dist
mkdir -p $PKG/etc/profile.d
ln -v -sf ant-$version $PKG/opt/ant
cat > $PKG/etc/profile.d/ant.sh << "EOF"
# Beginof /etc/profile.d/ant.sh
# Adjust the path
pathappend /opt/ant/bin
export ANT_HOME=/opt/ant
# End of /etc/profile.d/ant.sh
EOF
}