summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b99ed238155637a362c731c181aa7ef9634dddf2 (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: Jack Liu <jackxuanliu@gmail.com>
pkgname=java-jnumbernamer-git
pkgver=r5.22fb83d
pkgrel=1
pkgdesc="A command-line utility to name arbitrarily sized numbers using the Conway-Wechsler system"
arch=('i686' 'x86_64')
url="https://github.com/jackxuanliu/java-jnumbernamer"
license=('LGPL3')
depends=('java-runtime')
makedepends=('git' 'java-environment')
source=("git+https://github.com/jackxuanliu/java-jnumbernamer.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/java-jnumbernamer"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/java-jnumbernamer"
  ./build.sh
}

package() {
  cd "$srcdir/java-jnumbernamer"

  install -d "$pkgdir/usr/share/java/jnumbernamer"
  install -d "$pkgdir/usr/bin/"
  install -m644 build/jnumbernamer.jar "$pkgdir/usr/share/java/jnumbernamer"
  install -m755 res/java-jnumbernamer "$pkgdir/usr/bin/"
}