aboutsummaryrefslogtreecommitdiffstats
path: root/testing/util-linux-ng/APKBUILD
blob: 37c67548eb302236428ca1d9d268ef5dbfeebafc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Contributor: Leonardo Arena <rnalrd@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=util-linux-ng
pkgver=2.14.2
pkgrel=0
pkgdesc="Random collection of Linux utilities"
arch=""
url="http://kernel.org/~kzak/util-linux-ng/"
license="GPL-2 GPL Public Domain"
depends="uclibc e2fsprogs libuuid zlib"
makedepends="e2fsprogs-dev zlib-dev"
install=$pkgname.post-deinstall
source="http://www.kernel.org/pub/linux/utils/util-linux-ng/v2.14/$pkgname-$pkgver.tar.gz
	$install"
subpackages="$pkgname-doc"

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 \
		--disable-nls \
		--disable-kill \
		--enable-init \
		--without-ncurses \
		--without-pam
		
	make || return 1
	make install DESTDIR=$pkgdir
}

md5sums="8e5897e214292e83aa842fe3a3ec626f  util-linux-ng-2.14.2.tar.gz
d4bfc6c5612df4fd8118032175aa2201  util-linux-ng.post-deinstall"