blob: 0bbbe6f28fd31af30fe935ac0186e0c914c161d0 (
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
47
48
49
50
51
52
|
# Maintainer: xgjmibzr <xgjmibzr@gmail.com>
pkgname=httm-bin
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, BTRFS, or NILFS snapshots. (binary .deb)"
arch=('x86_64')
url="https://github.com/kimono-koans/httm"
license=('MPL-2.0')
provides=('httm')
conflicts=('httm' 'httm-git')
optdepends=('btrfs-progs: BTRFS support'
'zfs-utils: ZFS support'
'nilfs-utils: NILFS2 support')
options=('!strip' '!emptydirs')
source=("${pkgname}-${pkgver}.deb::${url}/releases/download/${pkgver}/httm_${pkgver}-1_amd64.deb")
sha512sums=('ec41a2bbc28d202664c848886f66101410d31d04fc760ad66b7cdebac3f089c314482d1c34231dfcca85cb5c64577eea70ada11ea0ec6ab0ddfc39c2daadb1d5')
prepare() {
tar -xf data.tar.xz
gzip -df usr/share/man/man1/httm.1.gz
}
package(){
_name=${pkgname//[-bin]/}
# install executable
install -Dm755 "${srcdir}/usr/bin/${_name}" "${pkgdir}/usr/bin/${_name}"
# install helper scripts
install -Dm755 "${srcdir}/usr/bin/bowie" "${pkgdir}/usr/bin/bowie"
install -Dm755 "${srcdir}/usr/bin/nicotine" "${pkgdir}/usr/bin/nicotine"
[[ -z "$(
command -v zfs
exit 0
)" ]] || install -Dm755 "${srcdir}/usr/bin/ounce" "${pkgdir}/usr/bin/ounce"
[[ -n "$(
command -v zfs
exit 0
)" ]] || echo "zfs not in path, helper script 'ounce' not installed"
# install man page
install -Dm644 "${srcdir}/usr/share/man/man1/${_name}.1" "${pkgdir}/usr/share/man/man1/${_name}.1"
# install README.md
install -Dm644 "${srcdir}/usr/share/doc/${_name}/README.md" "${pkgdir}/usr/share/doc/${_name}/README"
# install LICENSE
install -Dm644 "${srcdir}/usr/share/doc/httm/copyright" "${pkgdir}/usr/share/licenses/${_name}/LICENSE"
}
|