summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9109fc55d87617f28236df87185cc5c5b6726a63 (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
# Maintainer: Christian Meter <cmeter@gmail.com>

pkgname=omnia
pkgver=0.2.1
pkgrel=1
pkgdesc="Omnia is a Clojure REPL with almost all the power of a fully fledged editor, without being an editor"
arch=('x86_64' 'armv7h')
url="https://github.com/AvramRobert/omnia"
license=('APL')
provides=('omnia')
conflicts=('omnia')
depends=('java-runtime')

source=("${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar")
md5sums=('5d263ed854ab411a3172e644fa9c08c4')

prepare() {
  cat << EOT >| start_omnia.sh
#!/bin/sh
sh /opt/omnia/omnia
EOT
}

package() {
  install -Dm755 "${srcdir}/${pkgname}-${pkgver}/${pkgname}" "${pkgdir}/opt/${pkgname}/${pkgname}"
  install -Dm755 "${srcdir}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.jar" "${pkgdir}/opt/${pkgname}/${pkgname}-${pkgver}.jar"
  install -D "${srcdir}/${pkgname}-${pkgver}/${pkgname}.edn" "${pkgdir}/opt/${pkgname}/${pkgname}.edn"

  install -Dm755 "${srcdir}/start_omnia.sh" "${pkgdir}/usr/bin/${pkgname}"
}