aboutsummaryrefslogtreecommitdiffstats
path: root/community/btrfs-compsize/APKBUILD
blob: e7c60009ddab873f51908b0913d90fd5f633233d (plain) (blame)
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
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=btrfs-compsize
pkgver=1.4
pkgrel=0
pkgdesc="Calculate compression ratio of a set of files on Btrfs"
url="https://github.com/kilobyte/compsize"
arch="all"
license="GPL-2.0-or-later"
makedepends="btrfs-progs-dev"
options="!check" # no test suite
subpackages="$pkgname-doc"
source="https://github.com/kilobyte/compsize/archive/v$pkgver/compsize-$pkgver.tar.gz"
builddir="$srcdir/compsize-$pkgver"

build() {
	make
}

package() {
	install -d "$pkgdir"/usr/share/man/man8
	make PREFIX="$pkgdir"/usr install

	# compsize requires root privileges
	install -d "$pkgdir"/usr/sbin
	mv "$pkgdir"/usr/bin/compsize "$pkgdir"/usr/sbin
}

sha512sums="c07081721f87d8a59e724a62a0a6d6724434292e6bb3ffb71acd7c47e21727db8f02f4df296cb6094c0e80d3cd555018e492616747ce69055d21302a6617ca54  compsize-1.4.tar.gz"