aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/util-linux-ng/APKBUILD20
1 files changed, 16 insertions, 4 deletions
diff --git a/main/util-linux-ng/APKBUILD b/main/util-linux-ng/APKBUILD
index 6864105181..2125de2390 100644
--- a/main/util-linux-ng/APKBUILD
+++ b/main/util-linux-ng/APKBUILD
@@ -2,17 +2,17 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=util-linux-ng
pkgver=2.16
-pkgrel=1
+pkgrel=2
pkgdesc="Random collection of Linux utilities"
arch=""
url="http://kernel.org/~kzak/util-linux-ng/"
license="GPL-2 GPL Public Domain"
depends=
# use GNU sed til bb sed is fixed
-makedepends="zlib-dev sed"
+makedepends="zlib-dev sed ncurses-dev"
install=
source="http://www.kernel.org/pub/linux/utils/util-linux-ng/v2.16/$pkgname-$pkgver.tar.gz"
-subpackages="$pkgname-doc $pkgname-dev libuuid libblkid sfdisk"
+subpackages="$pkgname-doc $pkgname-dev libuuid libblkid sfdisk cfdisk"
replaces="e2fsprogs"
build() {
@@ -27,10 +27,14 @@ build() {
--disable-tls \
--disable-kill \
--disable-init \
- --without-ncurses \
+ --with-ncurses \
--without-pam
make || return 1
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
make -j1 install DESTDIR="$pkgdir"
# use pkg-config
rm -f "$pkgdir"/usr/lib/*.la
@@ -62,4 +66,12 @@ sfdisk() {
mv "$pkgdir"/sbin/sfdisk "$subpkgdir"/sbin/
}
+
+cfdisk() {
+ pkgdesk="Curses based partition table manipulator from util-linux-ng"
+ depends=
+ mkdir -p "$subpkgdir"/sbin
+ mv "$pkgdir"/sbin/cfdisk "$subpkgdir"/sbin/
+}
+
md5sums="f6aba93a43b7736782d7aaa3718c45e3 util-linux-ng-2.16.tar.gz"