updated on Thu Jan 19 04:14:35 UTC 2012
[aur-mirror.git] / lilo-git / PKGBUILD
blobc6e37e062e3298e69f5c1c6f7c100ef45114f231
1 # Maintainer: Marcin Karpezo <sirmacik at gmail dot com>
2 # Contributor: Eric Belanger <eric@archlinux.org>
3 # Contributor: judd <jvinet@zeroflux.org>
5 pkgname=lilo-git
6 pkgver=20110409
7 pkgrel=1
8 pkgdesc="Current git tree of a bootloader for Linux"
9 arch=('i686' 'x86_64')
10 url="https://alioth.debian.org/projects/lilo/"
11 license=('BSD')
12 groups=()
13 depends=()
14 makedepends=('git')
15 backup=('etc/lilo.conf')
16 depends=('device-mapper' 'coreutils')
17 makedepends=('bin86' 'sharutils' 'git')
18 optdepends=('perl: to use keytab-lilo')
19 install=lilo.install
20 options=('!makeflags')
21 provides=('lilo')
22 replaces=('lilo')
23 source=('lilo.conf')
24 md5sums=('7f2cbe7272042af9e9a37345d0656030')
26 _gitroot="https://alioth.debian.org/anonscm/git/lilo/lilo.git"
27 _gitname="lilo"
29 build() {
30   cd "$srcdir"
31   msg "Connecting to GIT server...."
33   if [ -d $_gitname ] ; then
34     cd $_gitname && git pull origin
35     msg "The local files are updated."
36   else
37     git clone $_gitroot $_gitname
38   fi
40   msg "GIT checkout done or server timeout"
41   msg "Starting make..."
43   rm -rf "$srcdir/$_gitname-build"
44   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
45   cd "$srcdir/$_gitname-build"
47   #
48   # BUILD HERE
49   #
51   export LC_ALL=C
52   make all
55 package() {
56   cd "$srcdir/$_gitname-build"
57   make DESTDIR="${pkgdir}" install
59   install -D -m644 "${srcdir}/lilo.conf" "${pkgdir}/etc/lilo.conf"
60   install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
61