summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6bf0b3f553fa7718aa8ff25f6b18c7f1d812481f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: Vojtěch Aschenbrenner <v@asch.cz>

pkgname=java-commons-cli
pkgver=1.5.0
pkgrel=1
pkgdesc='Java API for parsing command line options passed to programs'
arch=('i686' 'x86_64')
url='http://commons.apache.org/cli/'
license=('APACHE')
depends=('java-runtime')
source=("https://dlcdn.apache.org/commons/cli/binaries/commons-cli-${pkgver}-bin.tar.gz")
sha256sums=('b3f54ab1ff2d87a5ebea635e90ba8d45d034bf60df14ede335bfba96addd135d')

package() {
   cd "${srcdir}"

   JAVA_DIR="${pkgdir}/usr/share/java/${pkgname}"

   install -d "${JAVA_DIR}"
   install -m644 ${srcdir}/commons-cli-${pkgver}/commons-cli-${pkgver}.jar "${JAVA_DIR}"
   install -m644 ${srcdir}/commons-cli-${pkgver}/commons-cli-${pkgver}-javadoc.jar "${JAVA_DIR}"
   #install -m644 ${srcdir}/commons-cli-${pkgver}/commons-cli-${pkgver}-sources.jar "${JAVA_DIR}"

   ln -sr "${JAVA_DIR}"/commons-cli-${pkgver}.jar "${JAVA_DIR}"/commons-cli.jar
   ln -sr "${JAVA_DIR}"/commons-cli-${pkgver}-javadoc.jar "${JAVA_DIR}"/commons-cli-javadoc.jar
   #ln -sr "${JAVA_DIR}"/commons-cli-${pkgver}-sources.jar "${JAVA_DIR}"/commons-cli-sources.jar
}