blob: a6360554f61ce5c4f93911f9b4620c1e5f25b692 (
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
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: Fluree <development@flur.ee>
pkgname=fluree-bin
pkgver=4.2.4
pkgrel=1
pkgdesc='Fluree — semantic graph database (CLI and embedded server)'
arch=('x86_64' 'aarch64')
url='https://flur.ee'
license=('custom:BUSL-1.1')
depends=('glibc' 'gcc-libs')
provides=('fluree')
conflicts=('fluree')
# Upstream ships a stripped, statically-linked-where-possible binary.
options=('!strip' '!debug')
_archive_x86_64="fluree-db-cli-x86_64-unknown-linux-gnu"
_archive_aarch64="fluree-db-cli-aarch64-unknown-linux-gnu"
_release_url="https://github.com/fluree/db/releases/download/v${pkgver}"
source_x86_64=("${_archive_x86_64}-${pkgver}.tar.xz::${_release_url}/${_archive_x86_64}.tar.xz")
source_aarch64=("${_archive_aarch64}-${pkgver}.tar.xz::${_release_url}/${_archive_aarch64}.tar.xz")
sha256sums_x86_64=('efe45dcfcf03549ea6ad475b76720188d60ca33196fef696628a9333e8aadc6f')
sha256sums_aarch64=('a1953591667fcd8f75154a22f28cbfbfa854115eff20836bef4ed3be72f16511')
package() {
local _archive_var="_archive_${CARCH}"
local _archive="${!_archive_var}"
local _srcdir="${srcdir}/${_archive}"
install -Dm755 "${_srcdir}/fluree" "${pkgdir}/usr/bin/fluree"
install -Dm644 "${_srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 "${_srcdir}/README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -dm755 "${pkgdir}/usr/share/bash-completion/completions"
install -dm755 "${pkgdir}/usr/share/zsh/site-functions"
install -dm755 "${pkgdir}/usr/share/fish/vendor_completions.d"
"${_srcdir}/fluree" completions bash > "${pkgdir}/usr/share/bash-completion/completions/fluree"
"${_srcdir}/fluree" completions zsh > "${pkgdir}/usr/share/zsh/site-functions/_fluree"
"${_srcdir}/fluree" completions fish > "${pkgdir}/usr/share/fish/vendor_completions.d/fluree.fish"
}
|