aboutsummaryrefslogtreecommitdiffstats
path: root/main/util-linux/APKBUILD
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2016-06-20 12:15:26 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2016-06-20 12:15:26 +0200
commit3e8145eec8f3eff1a480aed8c1698d60b6d9d1df (patch)
tree1ae68551ae9042280960a728554e844c061119bd /main/util-linux/APKBUILD
parent91ae99886f5755126e3849181c0e8eea96584aca (diff)
downloadaports-3e8145eec8f3eff1a480aed8c1698d60b6d9d1df.tar.bz2
aports-3e8145eec8f3eff1a480aed8c1698d60b6d9d1df.tar.xz
main/util-linux: add bash-completion subpackage
Diffstat (limited to 'main/util-linux/APKBUILD')
-rw-r--r--main/util-linux/APKBUILD26
1 files changed, 19 insertions, 7 deletions
diff --git a/main/util-linux/APKBUILD b/main/util-linux/APKBUILD
index a7817876fa..d6f0b4fe1f 100644
--- a/main/util-linux/APKBUILD
+++ b/main/util-linux/APKBUILD
@@ -1,3 +1,4 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=util-linux
@@ -8,7 +9,7 @@ case $pkgver in
*.*) _v=$pkgver;;
esac
-pkgrel=3
+pkgrel=4
pkgdesc="Random collection of Linux utilities"
url="http://git.kernel.org/cgit/utils/util-linux/util-linux.git"
arch="all"
@@ -18,16 +19,16 @@ depends="findmnt"
makedepends="zlib-dev sed ncurses-dev tar autoconf automake libtool python-dev linux-headers"
install=
options="suid"
-source="http://www.kernel.org/pub/linux/utils/util-linux/v${_v}/util-linux-$pkgver.tar.xz
+source="http://www.kernel.org/pub/linux/utils/$pkgname/v${_v}/$pkgname-$pkgver.tar.xz
libblkid-reduce-probing-area-for-crazy-CDROMs.patch
ttydefaults.h
"
-subpackages="$pkgname-doc $pkgname-dev libuuid libblkid libmount
- libsmartcols libfdisk sfdisk cfdisk findmnt:_findmnt
- mcookie blkid py-libmount:_py"
+subpackages="$pkgname-doc $pkgname-dev $pkgname-bash-completion:bashcomp
+ libuuid libblkid libmount libsmartcols libfdisk sfdisk cfdisk
+ findmnt:_findmnt mcookie blkid py-libmount:_py"
replaces="e2fsprogs util-linux-ng"
-_builddir="$srcdir/util-linux-$pkgver"
+_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
local i
cd "$_builddir"
@@ -75,6 +76,17 @@ dev() {
replaces="e2fsprogs-dev util-linux-ng-dev"
}
+bashcomp() {
+ depends=""
+ pkgdesc="Bash completions for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
+ arch="noarch"
+
+ mkdir -p "$subpkgdir"/usr/share/
+ mv "$pkgdir"/usr/share/bash-completion \
+ "$subpkgdir"/usr/share/ || return 1
+}
+
blkid() {
pkgdesc="block device identification tool"
replaces="util-linux-ng"
@@ -117,6 +129,7 @@ libfdisk() {
mkdir -p "$subpkgdir"/lib
mv "$pkgdir"/lib/libfdisk.so.* "$subpkgdir"/lib/
}
+
sfdisk() {
pkgdesc="Partition table manipulator from util-linux"
depends=
@@ -124,7 +137,6 @@ sfdisk() {
mv "$pkgdir"/sbin/sfdisk "$subpkgdir"/sbin/
}
-
cfdisk() {
pkgdesc="Curses based partition table manipulator from util-linux"
depends=