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

32 lines
880 B
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Ant paketi Java tabanlı bir inşa aracıdır.
2016-02-24 01:27:23 +01:00
# URL: http://ant.apache.org/
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: glib openjdk
2017-12-22 22:59:36 +01:00
# Grup: geliştirme
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02: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 22:59:36 +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
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd $isim-$surum
2016-02-24 01:27:23 +01:00
mv ../hamcrest-1.3 .
cp -v ../junit-4.11.jar \
hamcrest-1.3/hamcrest-core-1.3.jar lib/optional
2017-10-28 14:10:23 +02:00
mkdir -p $PKG/opt/ant-$surum
./build.sh -Ddist.dir=$PKG/opt/ant-$surum dist
2016-02-24 01:27:23 +01:00
mkdir -p $PKG/etc/profile.d
2017-10-28 14:10:23 +02:00
ln -v -sf ant-$surum $PKG/opt/ant
2016-02-24 01:27:23 +01: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 21:42:00 +01:00
ln -s /opt/ant/bin/ant $PKG/usr/bin/ant
2016-02-24 01:27:23 +01:00
}