blob: fd37b3047e0d757d752b0484ab12c39ac3f35ad1 (
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: Tim van Leuverden <TvanLeuverden at Gmail dot com>
pkgname=ruri
pkgver=2.1.0
pkgrel=1
pkgdesc="Calculates the CRC-32 of files and checks them against their filename"
arch=('x86_64' 'i686' 'armv7h' 'aarch64')
url="https://gitlab.com/Timmy1e/ruri"
license=('AGPL3')
provides=('ruri')
depends=('gcc-libs')
makedepends=('cargo')
source=(
"https://gitlab.com/Timmy1e/ruri/-/archive/v${pkgver}/ruri-v${pkgver}.tar.gz"
)
sha256sums=(
'30ce2f395e3bfcf4891ef544f139d072466b8fff00b832a02d32bed4aa952f49'
)
build() {
cd "${srcdir}/${pkgname}-v${pkgver}"
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
cargo install --locked --no-track --bin ruri --path . --root "${srcdir}"
}
package() {
install -Dm755 "${srcdir}/bin/${pkgname}" \
"${pkgdir}/usr/bin/${pkgname}"
install -Dm644 "${srcdir}/${pkgname}-v${pkgver}"/target/release/build/ruri-*/out/ruri.* \
-t "${pkgdir}/usr/share/man"
}
# vim: sw=2 ts=2 tw=80 et:
|