summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 396f2a9d7a7ecd53551dfa8e04bd32557578fe0d (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
# Maintainer: Tyler Cook <tcc@sandpolis.com>
pkgdesc='Sandpolis client'
pkgname=sandpolis-client-git
pkgver=8.0.0
pkgrel=1
url='https://github.com/fossable/sandpolis'
arch=('x86_64')
license=('GNU Affero General Public License v3.0')
makedepends=('cargo' 'pkg-config')
depends=('fuse3' 'alsa-lib' 'wayland')
provides=('sandpolis-client')
conflicts=('sandpolis-client')
source=("git+https://github.com/fossable/sandpolis.git")
sha512sums=('SKIP')

pkgver() {
  cd "${srcdir}"
  git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "${srcdir}/sandpolis"
	export RUSTUP_TOOLCHAIN=stable
	export CARGO_TARGET_DIR=target
	cargo build --frozen --release --features client-tui --features client-gui
}

package() {
	install -Dm 755 "target/release/sandpolis" -t "${pkgdir}/usr/bin/sandpolis-client"
}