🔒 Repository is read-only – file editing is disabled.

recipes/utils/apache-ant/PAGBUILD.yaml main

39 linii Raw ← Powrót
123456789101112131415161718192021222324252627282930313233343536373839
pkgname: 'apache-ant'
pkgver: '1.10.17'
pkgrel: '1'
pkgdesc: 'Ant package is a Java-based build tool.'
url: 'https://ant.apache.org/'
arch: x86_64
depends: []
makedepends:
- glib
- openjdk

source:
- 'https://www.apache.org/dist/ant/binaries/${pkgname}-${pkgver}-bin.tar.xz'

sha256sums:
- SKIP

build: |
  cd ${pkgname}-${pkgver}

  install -d ${PKGDIR}/opt/ant-${pkgver}/{bin,lib}
  cp -rf * ${PKGDIR}/opt/ant-${pkgver}/lib
  ln -svf ../lib/bin/ant ${PKGDIR}/opt/ant-${pkgver}/bin/ant

  ln -v -sf ant-${pkgver} ${PKGDIR}/opt/ant

  mkdir -p ${PKGDIR}/etc/profile.d
  cat >  ${PKGDIR}/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

package: |
  true