blob: 6d65b418c88183ef7a483739615a8ffeb0ebd814 (
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
|
# Maintainer: Joost Bremmer <contact at madeofmagicandwires dot online>
pkgname=sad
pkgver=0.4.8
pkgrel=3
pkgdesc="Space Age seD"
arch=("x86_64")
url="https://github.com/ms-jpq/sad"
license=('MIT')
makedepends=('rust')
depends=('gcc-libs')
optdepends=('fzf: for tui usage'
'diff-so-fancy: diff colourizer'
'git-delta: diff colourizer')
source=("$pkgname-$pkgver.tar.gz::https://github.com/ms-jpq/${pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('b242359e9983e98c371e4bf9115437f746344edd45f6bae376b197e05a15b995')
build() {
cd "$pkgname-$pkgver"
RUSTUP_TOOLCHAIN=stable cargo build \
--release \
--all-features \
--target-dir=target
}
check() {
cd "$pkgname-$pkgver"
RUSTUP_TOOLCHAIN=stable cargo test \
--all-features \
--target-dir=target
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim: set ts=2 sts=2 sw=2 et :
|