diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-12-17 09:16:41 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-12-17 09:16:41 +0000 |
commit | f3e62894a249458ec611545bb17389b5147f240c (patch) | |
tree | f8427019b3643db72575f707739af18e7bbbd7e6 /main/util-linux-ng/APKBUILD | |
parent | 524cad013e2b133f1b237dc40a576c8aea06bd12 (diff) | |
download | aports-f3e62894a249458ec611545bb17389b5147f240c.tar.bz2 aports-f3e62894a249458ec611545bb17389b5147f240c.tar.xz |
main/util-linux-ng: build cfdisk subpackage
We need ncurses for this
Diffstat (limited to 'main/util-linux-ng/APKBUILD')
-rw-r--r-- | main/util-linux-ng/APKBUILD | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/main/util-linux-ng/APKBUILD b/main/util-linux-ng/APKBUILD index 686410518..2125de239 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" |