blob: ea81a6593ee80e1042e849873f98e01f32976190 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=btrfs-progs
pkgver=3.12
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 lzo-dev"
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"
_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="cd96bb73acd864e577cddba5fe310650 btrfs-progs-v3.12.tar.xz
e6e23724e95b3684631385c0f2898cad includes.patch"
sha256sums="097e63561c91c1fbfdf99e7a60ed55b51fa0f057b3875c08413e362c93938cdf btrfs-progs-v3.12.tar.xz
e4a7f8b749f11e5b7074c014a169cee83c73a7a06f53e3f9ba18e3b7d433e027 includes.patch"
sha512sums="655e8d9ecf297281d07312bd19a6ab942f354a370147e0ca46a22e5bcd7485ed0d415247ba21162617a23b7f9def202cab3bb5dc23ccfa96496043b48dfda785 btrfs-progs-v3.12.tar.xz
64d9ae9dd3c080a69f80fcd2986f096b881bbfb7c415abfbf7538b334a926da440c4098014a3d8f87a862524c21bc6654a98b5afde3939cefd40b8b4708f9ca1 includes.patch"
|