blob: cd293a31090cb7861c199859e3c840bd35ca4cf0 (
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
|
# Maintainer: Bao Trinh <qubidt at gmail dot com>
# Contributor: nightuser <nightuser.android@gmail.com>
pkgname=dduper
pkgver=0.04
_btrfsprogsver=5.6.1
pkgrel=1
pkgdesc='Block-level out-of-band BTRFS dedupe tool'
url="https://github.com/Lakshmipathi/dduper"
license=(GPL2)
arch=(x86_64)
makedepends=('git')
depends=('glibc' 'util-linux-libs' 'lzo' 'zlib' 'zstd' 'libgcrypt' 'python' 'python-numpy' 'python-prettytable')
source=("git+${url}.git#tag=v${pkgver}"
"https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v${_btrfsprogsver}.tar."{sign,xz}
'0001-Change-the-path-to-patched-btrfs.patch')
sha256sums=('SKIP'
'SKIP'
'50ccf556b887018f35937626f9a6e799c1e69692778b2bb090d2a56c9bdc96db'
'e00b2c85b3905155ebbedfe0b985e390915ee0576136137937687e008a2de352')
validpgpkeys=(
'F2B41200C54EFB30380C1756C565D5F9D76D583B')
prepare() {
cd "${srcdir}/${pkgname}"
patch -Np1 -i "${srcdir}/0001-Change-the-path-to-patched-btrfs.patch"
cd "${srcdir}/btrfs-progs-v${_btrfsprogsver}"
patch -Np1 -i "${srcdir}/${pkgname}/patch/btrfs-progs-v${_btrfsprogsver}/0001-Print-csum-for-a-given-file-on-stdout.patch"
}
build() {
cd "btrfs-progs-v${_btrfsprogsver}"
./autogen.sh
./configure --prefix=/usr --with-crypto=libgcrypt \
--disable-documentation \
--disable-shared --disable-static \
--disable-convert --disable-python
make btrfs
}
package() {
install -Dm755 "${pkgname}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm755 "btrfs-progs-v${_btrfsprogsver}/btrfs" "${pkgdir}/usr/lib/${pkgname}-btrfs"
}
# vim: noet:sw=8:ts=8
|