blob: 7e56feb63ce32b580caa1f81e822391ca2ee31d2 (
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
40
41
42
43
44
45
46
|
# Maintainer: xgjmibzr <xgjmibzr@gmail.com>
pkgname=httm
pkgver=0.44.0
pkgrel=1
pkgdesc="Prints the size, date and locations of available unique versions (deduplicated by modify time and size) of files residing on ZFS, BTRFS, or NILFS snapshots."
arch=('x86_64')
url="https://github.com/kimono-koans/httm"
license=('MPL-2.0')
conflicts=('httm-bin' 'httm-git')
options=('!strip' '!emptydirs')
#install='httm.install'
depends=('gcc-libs')
optdepends=('btrfs-progs: BTRFS support'
'zfs-utils: ZFS support'
'nilfs-utils: NILFS2 support')
makedepends=('cargo')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz")
sha512sums=('2f7bb45c3b2ef9b09f73f718a434734e567f58a1ced71533ef5b73df387e34325b1a80576bdf3e8c8b82ff26265443a2262977066278f3f754fe25b39d45955d')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
cargo fetch --target "$CARCH-unknown-linux-gnu"
}
build(){
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
# use cargo to build from a tagged release
cd "${srcdir}/${pkgname}-${pkgver}"
cargo build --frozen --release --all-features
}
package(){
# install executable
install -Dm755 "${srcdir}/${pkgname}-${pkgver}/target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
# install man page
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/${pkgname}.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1"
# install README.md
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
# install LICENSE
install -Dm644 "${srcdir}/${pkgname}-$pkgver/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|