updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / elilo-git / PKGBUILD
blob71549acef557ca7a72b9879ac89c3255a877b236
1 # Maintainer: Keshav P R <skodabenz aatt rocketmail ccoomm>
3 _pkgname="elilo"
4 pkgname="${_pkgname}-git"
6 pkgver=20110811
7 pkgrel=1
8 pkgdesc="EFI LInux Boot LOader - compiled from GIT mirror of CVS repo"
9 arch=('i686' 'x86_64')
10 url="http://sourceforge.net/projects/${_pkgname}/"
11 license=('GPL')
12 makedepends=('git' 'gnu-efi')
13 depends=('dosfstools' 'efibootmgr')
14 provides=("${_pkgname}" "${_pkgname}-cvs")
15 conflicts=("${_pkgname}" "${_pkgname}-cvs")
16 options=(strip docs zipman purge !libtool !emptydirs)
17 install="${pkgname}.install"
18 backup=("boot/efi/efi/${_pkgname}/${_pkgname}.conf")
20 source=("${_pkgname}.conf.example")
21 sha256sums=('beab92368eec32b29f11f2cee9a36581c7b630c4e1cfae2e4ad0c92906b16ca3')
23 _gitroot="git://github.com/skodabenz/${_pkgname}_cvs_to_git_temp.git"
24 _gitname="${_pkgname}"
27 _update_git() {
28         
29         cd "${srcdir}"
30         
31         msg "Connecting to GIT server...."
32         
33         if [ -d "${srcdir}/${_gitname}/" ]
34         then
35                 cd "${srcdir}/${_gitname}/"
36                 git reset --hard
37                 git fetch
38                 git checkout master
39                 git merge remotes/origin/master
40                 msg "The local GIT repo has been updated."
41         else
42                 git clone "${_gitroot}" "${_gitname}"
43                 msg "GIT checkout done or server timeout"
44         fi
45         
46         echo
47         
51 build() {
52         
53         _update_git
54         
55         rm -rf "${srcdir}/${_gitname}_build/" || true
56         cp -r "${srcdir}/${_gitname}" "${srcdir}/${_gitname}_build"
57         
58         cd "${srcdir}/${_gitname}_build"
59         
60         # sed -i 's|CONFIG_ext2fs=n|CONFIG_ext2fs=y|g' "${srcdir}/${_gitname}_build/Make.defaults" || true
61         # sed -i 's|DEBUGFLAGS = -Wall|DEBUGFLAGS = |g' "${srcdir}/${_gitname}_build/Make.defaults" || true
62         
63         CFLAGS="" make
64         echo
65         
69 package() {
70         
71         cd "${srcdir}/${_gitname}_build"
72         
73         install -d "${pkgdir}/boot/efi/efi/${_pkgname}/"
74         install -D -m644 "${srcdir}/${_gitname}_build/${_pkgname}.efi" "${pkgdir}/boot/efi/efi/${_pkgname}/${_pkgname}.efi"
75         install -D -m644 "${srcdir}/${_pkgname}.conf.example" "${pkgdir}/boot/efi/efi/${_pkgname}/${_pkgname}.conf"
76         
77         install -d "${pkgdir}/usr/sbin/"
78         install -D -m755 "${srcdir}/${_gitname}_build/tools/${_pkgname}alt" "${pkgdir}/usr/sbin/${_pkgname}alt"
79