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

35 lines
1016 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Ant paketi Java tabanlı bir inşa aracıdır.
# URL: http://ant.apache.org/
# Paketçi: milisarge
# Gerekler: glib openjdk
# Grup: geliştirme
isim=apache-ant
surum=1.9.7
devir=1
kaynak=(http://archive.apache.org/dist/ant/source/$isim-$surum-src.tar.bz2
https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/hamcrest/hamcrest-1.3.tgz
http://anduin.linuxfromscratch.org/sources/other/junit-4.11.jar)
derle() {
export JAVA_HOME=/opt/jdk
cd $isim-$surum
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-$surum
./build.sh -Ddist.dir=$PKG/opt/ant-$surum dist
mkdir -p $PKG/etc/profile.d
ln -v -sf ant-$surum $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
mkdir -p $PKG/usr/bin
ln -s /opt/ant/bin/ant $PKG/usr/bin/ant
rm -rf $PKG/opt/ant-${surum}/manual
}