summaryrefslogtreecommitdiffstats
path: root/util-linux/Pkgfile
blob: 90e69a8c5b226f8bcf6abeafb8aca66e7dac5ce1 (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
# Description: Divers utilitaires système.
# URL: http://freshmeat.net/projects/util-linux/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch

name=util-linux
version=2.21.1
release=1
source=(http://www.kernel.org/pub/linux/utils/util-linux/v${version%.*}/util-linux-$version.tar.xz)

build() {
	cd $name-$version
	sed -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
		-i $(grep -rl '/etc/adjtime' .)

	mkdir -pv $PKG/var/lib/hwclock

	./configure --enable-arch \
		--enable-partx \
		--enable-write \
		--enable-ddate \
		--enable-line \
		--enable-raw

	make
	make DESTDIR=$PKG  install
	rm $PKG/usr/bin/wall
	rm $PKG/usr/share/man/man1/wall.1
	mkdir -p $PKG/etc
	if [ -f $PKG/usr/share/info/dir ]; then
			rm $PKG/usr/share/info/dir
	fi
}