Commit f3e62894 authored by Natanael Copa's avatar Natanael Copa

main/util-linux-ng: build cfdisk subpackage

We need ncurses for this
parent 524cad01
......@@ -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"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment