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

35 lines
1016 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
2018-06-02 05:18:10 +02:00
surum=1.9.7
2017-10-28 14:10:23 +02:00
devir=1
kaynak=(http://archive.apache.org/dist/ant/source/$isim-$surum-src.tar.bz2
2018-06-02 05:18:10 +02:00
https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/hamcrest/hamcrest-1.3.tgz
2017-12-22 22:59:36 +01:00
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() {
2018-06-02 05:18:10 +02:00
export JAVA_HOME=/opt/jdk
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-06-02 05:18:10 +02:00
mkdir -p $PKG/usr/bin
2018-02-12 21:42:00 +01:00
ln -s /opt/ant/bin/ant $PKG/usr/bin/ant
2018-06-02 05:18:10 +02:00
rm -rf $PKG/opt/ant-${surum}/manual
2016-02-24 01:27:23 +01:00
}