summarylogtreecommitdiffstats
path: root/.PKGBUILD.template
blob: aa8b72fc93ffb48ef98342dc2ab89f20d4135f25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Maintainer:  Giovanni Ciatto <giovanni.ciatto at gmail dot com>

pkgname=2p-kt
pkgver=__VERSION__
pkgrel=1
pkgdesc='A Kotlin Multi-Platform ecosystem for symbolic AI'
arch=('any')
url='__URL__'
license=('Apache')
depends=('java-runtime' 'bash')
makedepends=('gendesk')
source=("2p-repl-${pkgver}.jar::${url}/releases/download/${pkgver}/2p-repl-${pkgver}-redist.jar")
noextract=("${pkgname}-${pkgver}.tar.gz")
sha256sums=('__DIGEST__')

package() {
  echo "#!/bin/sh
exec /usr/bin/java -jar '/usr/share/java/${pkgname}/2p-repl.jar' \"\$@\"" > "2p"
  install -Dm755 2p-repl-${pkgver}.jar "${pkgdir}/usr/share/java/${pkgname}/2p-repl.jar"
  install -Dm755 2p "${pkgdir}/usr/bin/2p"
}