summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 411018a5424465d5a7313fd5b09611cdc5c307b0 (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
# Maintainer: Rubin Simons <me@rubin55.org>
# Contributor: Zhanibek Adilbekov <zhanibek.adilbekov@pm.me>

pkgname=cypher-shell
pkgver="2025.02.0"
pkgrel=2
pkgdesc="A command line shell where you can execute Cypher against an instance of Neo4j"
arch=('any')
url="https://github.com/neo4j/${pkgname}"
license=('GPL3')
_java_version=17
depends=("java-runtime=$_java_version" "neo4j-community")
source=(
  "https://dist.neo4j.org/neo4j-community-${pkgver}-unix.tar.gz"
  "wrapper.sh"
)
# https://dist.neo4j.org/neo4j-community-${pkgver}-unix.tar.gz.sha256
sha256sums=('95ec43f4502668d5f7ba3af8e0791d91b1cbd61f74133ef15d75068013bf1149'
            '9454c1c0b17ea9dd243e96914067c7d238bd1c97a389c5ffad2dda13db6a94c8')

package() {
    mkdir -p $pkgdir/usr/bin $pkgdir/usr/share/neo4j/bin $pkgdir/usr/share/neo4j/lib
    install -Dm755 $srcdir/wrapper.sh $pkgdir/usr/bin/${pkgname}
    install -Dm755 $srcdir/neo4j-community-${pkgver}/bin/${pkgname} $pkgdir/usr/share/neo4j/bin/${pkgname}
    install -Dm644 $srcdir/neo4j-community-${pkgver}/lib/${pkgname}-${pkgver}.jar $pkgdir/usr/share/neo4j/lib/${pkgname}-${pkgver}.jar
}