diff options
author | davidovski <david@davidovski.xyz> | 2022-06-15 20:02:02 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-06-15 20:02:02 +0100 |
commit | d2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 (patch) | |
tree | 684a17eebf446aa1adab1097616f1882c8d51568 /repo/apache-ant/apache-ant.xibuild | |
parent | d1fc3393cca72e8e432f827f7624e38734fad6dc (diff) |
added deps for qemu
Diffstat (limited to 'repo/apache-ant/apache-ant.xibuild')
-rw-r--r-- | repo/apache-ant/apache-ant.xibuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/repo/apache-ant/apache-ant.xibuild b/repo/apache-ant/apache-ant.xibuild new file mode 100644 index 0000000..4808d2a --- /dev/null +++ b/repo/apache-ant/apache-ant.xibuild @@ -0,0 +1,42 @@ +#!/bin/sh + +NAME="apache-ant" +DESC="A java-based build tool" + +MAKEDEPS="adoptopenjdk11" + +PKG_VER=1.10.12 +SOURCE="https://downloads.apache.org/ant/binaries/apache-ant-$PKG_VER-bin.tar.xz" + +anthome="/usr/share/java/apache-ant" +build() { + cat > apache-ant.sh <<-EOF + ANT_HOME="$anthome" + export ANT_HOME + EOF +} + +package() { + local destdir="$PKG_DEST/$anthome" + + install -dm755 "$destdir"/bin + rm bin/*.bat bin/*.cmd + install -m755 bin/* "$destdir"/bin + + install -dm755 "$PKG_DEST"/usr/bin + ln -sf $anthome/bin/ant "$PKG_DEST"/usr/bin/ant + + cp -r etc "$destdir"/ + + install -dm755 "$destdir"/lib + install -m644 lib/*.jar "$destdir"/lib + + ln -sf ../../junit.jar "$destdir"/lib/junit.jar + + local file; for file in LICENSE NOTICE; do + install -m644 -D $file "$PKG_DEST"/usr/share/licenses/apache-ant/$file + done + + install -m644 -D apache-ant.sh "$PKG_DEST"/etc/profile.d/apache-ant.sh +} + |