1 # Maintainer: Keshav P R <skodabenz aatt rocketmail ccoomm>
4 pkgname="${_pkgname}-git"
8 pkgdesc="EFI LInux Boot LOader - compiled from GIT mirror of CVS repo"
10 url="http://sourceforge.net/projects/${_pkgname}/"
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}"
31 msg "Connecting to GIT server...."
33 if [ -d "${srcdir}/${_gitname}/" ]
35 cd "${srcdir}/${_gitname}/"
39 git merge remotes/origin/master
40 msg "The local GIT repo has been updated."
42 git clone "${_gitroot}" "${_gitname}"
43 msg "GIT checkout done or server timeout"
55 rm -rf "${srcdir}/${_gitname}_build/" || true
56 cp -r "${srcdir}/${_gitname}" "${srcdir}/${_gitname}_build"
58 cd "${srcdir}/${_gitname}_build"
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
71 cd "${srcdir}/${_gitname}_build"
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"
77 install -d "${pkgdir}/usr/sbin/"
78 install -D -m755 "${srcdir}/${_gitname}_build/tools/${_pkgname}alt" "${pkgdir}/usr/sbin/${_pkgname}alt"