blob: 40f621e98f264b43abb0656cdc38054aaaea6a51 (
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.43.2
pkgrel=1
pkgdesc="Prints the size, date and locations of available unique versions (deduplicated by modify time and size) of files residing on ZFS or BTRFS 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=('5cc8ca15eff55147e0e417c6a8dc023caf38e9d6c630c9e3768377eacd8254c997431b7601715e4fe79d8ee1a2870659f7578ffde80c5339205ca89567d66388')
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"
}
|