summaryrefslogtreecommitdiffstats
path: root/main/btrfs-progs/APKBUILD
blob: f069ba9a3914542978e822ce3ef2118cd03d2fc1 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=btrfs-progs
pkgver=0.20_rc1
_ver=${pkgver/_rc/-rc}
pkgrel=1
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"
install=
subpackages="$pkgname-doc"
source="https://www.kernel.org/pub/linux/kernel/people/mason/btrfs-progs/btrfs-progs-v$_ver.tar.xz"

_builddir="$srcdir"/$pkgname-v$_ver
prepare() {
	cd "$_builddir"
}

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
}

md5sums="b152503b9f1a9f577293fa37b1312310  btrfs-progs-v0.20-rc1.tar.xz"
sha256sums="ba969a90b4ae53fca9ba179469d47d194a29f25254612a91c6a12b473f94ee13  btrfs-progs-v0.20-rc1.tar.xz"
sha512sums="92f7a1b7c2c8c7f8be6d7dcb284b97251a97893b201353de28e28f65b01a8517bdf576a0b02e7f8f30f9b8056c0b2985998c0f87c6e9da236899488133a862de  btrfs-progs-v0.20-rc1.tar.xz"