summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fa379f8606b52b0b0fddbb806f805d8bbd8db195 (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
# Maintainer: Antoine Büsch <antoine dot busch at gmail dot com>

pkgname=sinuous
pkgver=0.1.4
pkgrel=1
pkgdesc="A simple TUI to control local Sonos speakers"
url="https://github.com/abusch/sinuous"
license=("MIT")
arch=("any")
depends=()
makedepends=('rust')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('76eea68511fe29ec365149973f7f466cbea9809fe90a9d0a8108e2edae300891')

prepare() {
	cd "$pkgname-$pkgver"
	cargo fetch --locked
}

build() {
	cd "$pkgname-$pkgver"
	cargo build --release --locked --target-dir=target
}

check() {
	cd "$pkgname-$pkgver"
}

package() {
	cd "$pkgname-$pkgver"
	cargo install \
		--locked \
		--no-track \
		--path . \
		--root "${pkgdir}"/usr
	install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
	install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}