blob: cdc5c71d17be202ee85e4b0f69c969944b77fbd7 (
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: Rafael Dominiquini <rafaeldominiquini at gmail dor com>
_pkgauthor=pvolok
pkgname=mprocs
pkgver=0.7.1
pkgrel=3
pkgdesc="Run multiple commands in parallel"
arch=('x86_64' 'aarch64')
url="https://github.com/${_pkgauthor}/${pkgname}"
license=('MIT')
provides=("${pkgname}")
makedepends=('rust' 'gzip' 'help2man')
source=("https://github.com/${_pkgauthor}/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('17dcb04d2d7caf8c1263b124cf5ecb145d28ac6d0717c2de78c988858c0572af')
build() {
cd ${pkgname}-${pkgver} || exit 1
RUSTFLAGS="--remap-path-prefix=$(pwd)=/build/" cargo build --release --locked
help2man ${pkgname} --output "${pkgname}.1" --no-info
gzip "${pkgname}.1"
}
package() {
cd ${srcdir}/${pkgname}-${pkgver} || exit 1
install -Dm755 "target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 "CHANGELOG.md" "${pkgdir}/usr/share/doc/${pkgname}/CHANGELOG.md"
install -Dm644 "${pkgname}.1.gz" "${pkgdir}/usr/share/man/man1/${pkgname}.1"
}
|