1 # Contributor: Vojtech Kral <kral.vojtech (at) gmail.com>
6 pkgdesc="kernel-space remake of the popular fortune program"
8 url="https://github.com/kralyk/kfortune"
16 _gitroot="git://github.com/kralyk/kfortune.git"
18 _builddir=$_gitname-build
23 msg "Connecting to GIT server...."
25 if [ -d $_gitname ] ; then
26 cd $_gitname && git pull origin
27 msg "The local files are updated."
29 git clone $_gitroot $_gitname
32 msg "GIT checkout done or server timeout"
33 msg "Starting make..."
35 rm -rf "$srcdir/$_builddir"
36 git clone "$srcdir/$_gitname" "$srcdir/$_builddir"
37 cd "$srcdir/$_builddir"
44 cd "$srcdir/$_builddir"
45 gzip -c9 'README.6' > 'kfortune.6.gz'
46 install -D -m 755 'kfortune.ko' "$pkgdir/lib/modules/`uname -r`/kernel/drivers/char/kfortune.ko"
47 install -D -m 644 'kfortune.6.gz' "$pkgdir/usr/share/man/man6/kfortune.6.gz"