1 # Contributor: Dave Reisner <d@falconindy.com>
6 pkgdesc="Miscellaneous system utilities for Linux - the GIT version"
7 url="http://userweb.kernel.org/~kzak/util-linux/"
10 depends=('bash' 'zlib')
12 provides=('util-linux-ng=2.21' 'util-linux=2.21')
13 conflicts=('util-linux-ng' 'util-linux')
14 replaces=('util-linux-ng')
16 optdepends=('perl: for chkdupexe support')
18 _gitroot="git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git"
22 msg "Connecting to GIT server...."
24 if [[ -d $_gitname ]] ; then
25 cd "$_gitname" && git pull origin
26 msg "The local files are updated."
28 git clone $_gitroot $_gitname
31 msg "GIT checkout done or server timeout"
33 rm -rf "$srcdir/$_gitname-build"
34 git clone "$srcdir/$_gitname"{,-build}
35 cd "$srcdir/$_gitname-build"
37 # alter location of adjtime file for FHS
38 sed -e 's@etc/adjtime@var/lib/hwclock/adjtime@' -i hwclock/hwclock.c
49 msg "Starting make..."
54 make -C "$_gitname-build" DESTDIR="$pkgdir" install
56 # create adjtime file's dir
57 install -dm755 "$pkgdir/var/lib/hwclock"