aboutsummaryrefslogtreecommitdiffstats
path: root/main/btrfs-progs/APKBUILD
blob: cfed9a8809de6c210ec8d6778aba7199d61f87a7 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=btrfs-progs
pkgver=3.16
pkgrel=0
pkgdesc="Tools for the btrfs"
url="https://btrfs.wiki.kernel.org/"
arch="all"
license="GPL2"
depends=""
makedepends="util-linux-dev bash attr-dev acl-dev e2fsprogs-dev zlib-dev
	lzo-dev asciidoc xmlto"
install=
subpackages="$pkgname-doc $pkgname-dev"
source="https://www.kernel.org/pub/linux/kernel/people/mason/btrfs-progs/btrfs-progs-v${pkgver}.tar.xz
	includes.patch
	musl-compat.patch"

_builddir="$srcdir"/$pkgname-v$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make CFLAGS="$CFLAGS" prefix=/usr || return 1
}

package() {
	cd "$_builddir"
	make prefix=/usr mandir=/usr/share/man DESTDIR="$pkgdir" install || return 1
}

dev() {
	default_dev || return 1
	mv "$pkgdir"/usr/lib/*.so* "$subpkgdir"/usr/lib
}

md5sums="26035e2ff30513dfeeb2538cacf954b2  btrfs-progs-v3.16.tar.xz
51609651140dff3766b00d356b05175b  includes.patch
13aae8338d103c1bdfab26ee324cfe20  musl-compat.patch"
sha256sums="9a7651df6c0430b75fa0637519ca5be29a756684dada241b4398007ae3cb0b5e  btrfs-progs-v3.16.tar.xz
22db993d733e763d55684a58b5aa3757d555c16a9178381bb83acec7abf0eca1  includes.patch
6ef4d5633aa715095610de3045187ba39daaf5518629eb4e6ef4e143fb486531  musl-compat.patch"
sha512sums="dd1f4bc13e62623792121d0f2a2a388be85bae4eec4abc348e0d21949fefa58863e7bf56515dd57022c312ee02d2fa76cc7b1a1c2d78a36532961b22b410a4db  btrfs-progs-v3.16.tar.xz
816482d72d6f6b1dc10ad01858f6d38ad7593e35167000844024cce50cfd3f54d53de0341b66efe912b0f0140c60cb51665843bde1779efb6f65a53bdc20fecb  includes.patch
c7634159e591bf969dad8fa51d48668c999de8efc8cb6ff26b7a047b27a8cd18b1a93494dbf6d584afcbc6e3f40ae98ea3a33d188ee16b06ad7eb564efccde9a  musl-compat.patch"