1 # Maintainer: vicky91 <vickypaiers@gmail.com>
5 pkgdesc="A KCModule for configuring the GRUB2 bootloader."
7 url="http://kde-apps.org/content/show.php?content=139643"
10 makedepends=('cmake' 'automoc4' 'git' 'imagemagick')
12 _gitroot='git://anongit.kde.org/kcm-grub2'
17 msg "Connecting to GIT server...."
19 if [[ -d "${_gitname}" ]]; then
20 cd "${_gitname}" && git pull origin
21 msg "The local files are updated."
23 git clone "${_gitroot}" "${_gitname}"
26 msg "GIT checkout done or server timeout"
27 msg "Starting build..."
29 rm -rf "${srcdir}/${_gitname}-build"
30 git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
31 cd "${srcdir}/${_gitname}-build"
33 cmake . -DCMAKE_INSTALL_PREFIX=/usr
38 cd "${srcdir}/${_gitname}-build"
39 make DESTDIR="${pkgdir}/" install
42 # vim:set ts=2 sw=2 et: