APKBUILD 1.5 KB
Newer Older
1 2 3
# Contributor: Leonardo Arena <rnalrd@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=util-linux-ng
4
pkgver=2.16
5
pkgrel=1
6 7 8 9
pkgdesc="Random collection of Linux utilities"
arch=""
url="http://kernel.org/~kzak/util-linux-ng/"
license="GPL-2 GPL Public Domain"
10
depends=
11 12
# use GNU sed til bb sed is fixed
makedepends="zlib-dev sed"
13 14
install=
source="http://www.kernel.org/pub/linux/utils/util-linux-ng/v2.16/$pkgname-$pkgver.tar.gz"
15 16
subpackages="$pkgname-doc $pkgname-dev libuuid libblkid sfdisk"
replaces="e2fsprogs"
17 18 19 20 21 22 23 24

build() {
	cd "$srcdir/$pkgname-$pkgver"
	sed -e 's/versionsort/alphasort/g'\
		-e 's/strverscmp.h/dirent.h/g' \
		-i mount/lomount.c

	./configure --prefix=/usr \
25
		--disable-uuidd \
26
		--disable-nls \
27
		--disable-tls \
28
		--disable-kill \
29
		--disable-init \
30
		--without-ncurses \
31 32 33
		--without-pam
		
	make || return 1
34 35 36 37 38 39 40 41
	make -j1 install DESTDIR="$pkgdir"
	# use pkg-config
	rm -f "$pkgdir"/usr/lib/*.la
}

dev() {
	default_dev
	replaces="e2fsprogs-dev"
42 43
}

44 45 46 47 48 49 50 51
libuuid() {
	pkgdesc="DCE compatible Universally Unique Identifier library"
	depends=
	mkdir -p "$subpkgdir"/lib
	mv "$pkgdir"/lib/libuuid* "$subpkgdir"/lib/
}

libblkid() {
52
	pkgdesc="Block device identification library from util-linux-ng"
53 54 55 56 57
	depends=
	mkdir -p "$subpkgdir"/lib 
	mv "$pkgdir"/lib/libblkid* "$subpkgdir"/lib/
}

58 59 60 61 62 63 64
sfdisk() {
	pkgdesk="Partition table manipulator from util-linux-ng"
	depends=
	mkdir -p "$subpkgdir"/sbin
	mv "$pkgdir"/sbin/sfdisk "$subpkgdir"/sbin/
}

65
md5sums="f6aba93a43b7736782d7aaa3718c45e3  util-linux-ng-2.16.tar.gz"