summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6cd76727ec908ec1e182a9209921af69ae180011 (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
pkgname=reilysiegel-bear-git
pkgver=r2.0bc6ce2
pkgrel=1
pkgdesc='A simple utility for easy sleep'
arch=('x86_64')
url="https://github.com/ReilySiegel/bear"
license=('EPL')
makedepends=('clojure' 'native-image-jdk11-bin' 'git')
source=("$pkgname::git+https://github.com/ReilySiegel/bear.git#branch=master")
md5sums=("SKIP")

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

build() {
  cd "$pkgname"
  export GRAALVM_HOME="/usr/lib/jvm/java-11-graalvm"
  clojure -A:native-image
}

package() {
  cd "$pkgname"
  install -Dm755 bear "$pkgdir"/usr/bin/bear
}