summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cda2d61fdcff730e5fa36a897d96c7fef7d0549b (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
28
29
30
31
# Maintainer: Guillaume ALAUX <guillaume@archlinux.org>
_libname=inetlib
pkgname=java-${_libname}
pkgver=1.1.2
pkgrel=4
pkgdesc="GNU Java library of clients for common internet protocols"
arch=('any')
url="https://www.gnu.org/software/classpath/inetlib.html"
license=('GPL')
depends=('java-runtime-headless')
makedepends=('java-environment')
source=(https://ftp.gnu.org/gnu/classpath/${_libname}-${pkgver}.tar.gz
        0001-make-logger-static-again.patch)
md5sums=('e28147996e70b63b6caa743319a4bf46'
         '9f231445d1f3307fb601f48d8ce25f7f')

build() {
  cd ${_libname}-${pkgver}

  patch -p1 < "${srcdir}"/0001-make-logger-static-again.patch

  ./configure
  make
}

package() {
  install -Dm644 ${_libname}-${pkgver}/${_libname}.jar \
                 "${pkgdir}"/usr/share/java/${_libname}-${pkgver}.jar

  ln -s ${_libname}-${pkgver}.jar "${pkgdir}"/usr/share/java/${_libname}.jar
}