milis/talimatname/genel/a/apache-ant/talimat

32 lines
880 B
Text
Raw Normal View History

2017-10-27 21:46:27 +03:00
# Tanım: Ant paketi Java tabanlı bir inşa aracıdır.
2016-02-24 02:27:23 +02:00
# URL: http://ant.apache.org/
2017-10-27 21:46:27 +03:00
# Paketçi: milisarge
# Gerekler: glib openjdk
2017-12-22 23:59:36 +02:00
# Grup: geliştirme
2016-02-24 02:27:23 +02:00
2017-10-28 15:10:23 +03:00
isim=apache-ant
surum=1.9.6
devir=1
kaynak=(http://archive.apache.org/dist/ant/source/$isim-$surum-src.tar.bz2
2017-12-22 23:59:36 +02:00
http://hamcrest.googlecode.com/files/hamcrest-1.3.tgz
http://anduin.linuxfromscratch.org/sources/other/junit-4.11.jar)
2017-01-31 01:55:06 +03:00
2017-10-28 00:59:41 +03:00
derle() {
2017-10-28 15:10:23 +03:00
cd $isim-$surum
2016-02-24 02:27:23 +02:00
mv ../hamcrest-1.3 .
cp -v ../junit-4.11.jar \
hamcrest-1.3/hamcrest-core-1.3.jar lib/optional
2017-10-28 15:10:23 +03:00
mkdir -p $PKG/opt/ant-$surum
./build.sh -Ddist.dir=$PKG/opt/ant-$surum dist
2016-02-24 02:27:23 +02:00
mkdir -p $PKG/etc/profile.d
2017-10-28 15:10:23 +03:00
ln -v -sf ant-$surum $PKG/opt/ant
2016-02-24 02:27:23 +02:00
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
2018-02-12 23:42:00 +03:00
ln -s /opt/ant/bin/ant $PKG/usr/bin/ant
2016-02-24 02:27:23 +02:00
}