blob: 0c049c528ad96fc7d9bcff2891a2df9fb6afd031 (
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: AlphaLynx <alphalynx@protonmail.com>
pkgname=vsv
pkgver=2.0.0
pkgrel=5
pkgdesc='Runit service manager CLI'
arch=('x86_64')
url="https://github.com/bahamas10/$pkgname"
license=('MIT')
depends=('runit' 'glibc' 'gcc-libs')
makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::https://github.com/bahamas10/$pkgname/archive/refs/tags/v$pkgver.tar.gz"
'svdir.patch')
sha256sums=('05c20d8e04ca37fdc47dde80a04a4709b54650748529456ebdddb4104fc805ec'
'30b481c6c1a6869af578d517ccfd0cf4c2e3b0ca7ae597c157877636ab1d4e2e')
prepare() {
cd "$pkgname-$pkgver"
patch -Np1 -i ../svdir.patch
}
build() {
cd "$pkgname-$pkgver"
cargo build --release
}
check() {
cd "$pkgname-$pkgver"
cargo test
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 target/release/vsv "$pkgdir/usr/bin/$pkgname"
install -Dm644 man/vsv.8 "$pkgdir/usr/share/man/man8/$pkgname.8"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dm644 CHANGES.md "$pkgdir/usr/share/doc/$pkgname/CHANGES.md"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|