Commit c53dca81 authored by Natanael Copa's avatar Natanael Copa

main/util-linux-ng: moved from testing. use gnu sed. sfdisk subpkg.

parent 21c0e599
......@@ -2,16 +2,18 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=util-linux-ng
pkgver=2.16
pkgrel=0
pkgrel=1
pkgdesc="Random collection of Linux utilities"
arch=""
url="http://kernel.org/~kzak/util-linux-ng/"
license="GPL-2 GPL Public Domain"
depends=
makedepends="zlib-dev"
# use GNU sed til bb sed is fixed
makedepends="zlib-dev sed"
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"
subpackages="$pkgname-doc $pkgname-dev libuuid libblkid sfdisk"
replaces="e2fsprogs"
build() {
cd "$srcdir/$pkgname-$pkgver"
......@@ -29,7 +31,14 @@ build() {
--without-pam
make || return 1
make install DESTDIR=$pkgdir
make -j1 install DESTDIR="$pkgdir"
# use pkg-config
rm -f "$pkgdir"/usr/lib/*.la
}
dev() {
default_dev
replaces="e2fsprogs-dev"
}
libuuid() {
......@@ -40,11 +49,17 @@ libuuid() {
}
libblkid() {
pkgdesc="Block device identification library"
pkgdesc="Block device identification library from util-linux-ng"
depends=
mkdir -p "$subpkgdir"/lib
mv "$pkgdir"/lib/libblkid* "$subpkgdir"/lib/
}
sfdisk() {
pkgdesk="Partition table manipulator from util-linux-ng"
depends=
mkdir -p "$subpkgdir"/sbin
mv "$pkgdir"/sbin/sfdisk "$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