diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2015-12-11 12:40:30 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-12-11 12:21:20 +0000 |
commit | fc3e3f3ee05e506a8ff57e9c98d3547c39a4acc8 (patch) | |
tree | f5770e6b5a09293860c5e587d0fe2a464afd9c5a /main/btrfs-progs/APKBUILD | |
parent | c8a2204ccf2cf5b6c0504cbb74376b75af9fb5a6 (diff) | |
download | aports-fc3e3f3ee05e506a8ff57e9c98d3547c39a4acc8.tar.bz2 aports-fc3e3f3ee05e506a8ff57e9c98d3547c39a4acc8.tar.xz |
main/btrfs-progs: All binaries and scripts not involved in the boot process and the creation of the filesystem are moved to -extra subpackage
TODO:
- replace /sbin/fsck.btrfs dummy script to real '/sbin/btrfs check'-based one.
Diffstat (limited to 'main/btrfs-progs/APKBUILD')
-rw-r--r-- | main/btrfs-progs/APKBUILD | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/main/btrfs-progs/APKBUILD b/main/btrfs-progs/APKBUILD index ed29946f59..a3e13fc4c2 100644 --- a/main/btrfs-progs/APKBUILD +++ b/main/btrfs-progs/APKBUILD @@ -3,8 +3,8 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=btrfs-progs pkgver=4.3.1 -pkgrel=1 -pkgdesc="Tools for the btrfs" +pkgrel=2 +pkgdesc="BTRFS filesystem utilities" url="https://btrfs.wiki.kernel.org/" arch="all" license="GPL2" @@ -13,7 +13,7 @@ makedepends="util-linux-dev bash attr-dev acl-dev e2fsprogs-dev zlib-dev lzo-dev asciidoc xmlto linux-headers autoconf automake libtool" install= -subpackages="$pkgname-doc $pkgname-dev $pkgname-bash-completion:completion $pkgname-libs" +subpackages="$pkgname-doc $pkgname-dev $pkgname-bash-completion:completion $pkgname-libs $pkgname-extra" source="https://www.kernel.org/pub/linux/kernel/people/kdave/$pkgname/$pkgname-v$pkgver.tar.xz includes.patch musl-compat.patch @@ -21,6 +21,7 @@ source="https://www.kernel.org/pub/linux/kernel/people/kdave/$pkgname/$pkgname-v " _builddir="$srcdir"/$pkgname-v$pkgver + prepare() { cd "$_builddir" for i in $source; do @@ -45,10 +46,14 @@ build() { package() { cd "$_builddir" make -j1 DESTDIR="$pkgdir" install || return 1 + mkdir "$pkgdir"/sbin + for i in btrfs btrfsck fsck.btrfs mkfs.btrfs; do + mv "$pkgdir"/usr/bin/$i "$pkgdir"/sbin + done + mv "$pkgdir"/usr/bin "$pkgdir"/usr/sbin } completion() { - depends="" pkgdesc="Bash completion script for $pkgname" install_if="bash $pkgname=$pkgver-r$pkgrel" arch="noarch" @@ -57,6 +62,14 @@ completion() { "$subpkgdir"/usr/share/bash-completion/completions/btrfs } +extra() { + depends="$pkgname" + pkgdesc="BTRFS filesystem extra utilities" + mkdir -p "$subpkgdir" + mv "$pkgdir"/usr "$subpkgdir" + rmdir "$subpkgdir"/usr/lib || return 1 +} + md5sums="ae04b324a059482e4c7e9710043c4e93 btrfs-progs-v4.3.1.tar.xz a79fe97241a26ec2a4be9fc566fa8e29 includes.patch 204ac1381fc0c373bc809d6a453615f2 musl-compat.patch |