#Maintainer: Dimitris Tzemos pkgname=grub-customizer pkgver=3.0.4 pkgrel=1dj pkgbranch=3.0 source=("https://launchpad.net/${pkgname}/${pkgbranch}/${pkgver}/+download/${pkgname}_${pkgver}.tar.gz" \ grub.cfg) sourcetemplate=http://people.salixos.org/djemos/salix/$pkgname docs=("README" "COPYING" "changelog") url=https://launchpad.net/grub-customizer slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "grub-customizer - GUI for customizing GRUB2" "" "Homepage: https://launchpad.net/grub-customizer" ) build() { cd $startdir/src/$pkgname-$pkgver || return 1 cmake \ -DCMAKE_C_FLAGS:STRING="$CFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$CXXFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr . make install DESTDIR=$PKG || return 1 cp $PKG/usr/share/applications/grub-customizer.desktop $PKG/usr/share/applications/grub-customizer-kde.desktop || return 1 sed -i "s/Exec=.*/Exec=gksu \/usr\/bin\/grub-customizer/" $PKG/usr/share/applications/grub-customizer.desktop || return 1 sed -i "s/Exec=.*/Exec=kdesu \/usr\/bin\/grub-customizer/" $PKG/usr/share/applications/grub-customizer-kde.desktop || return 1 sed -i '/^X-Ubuntu/d' ${PKG}/usr/share/applications/grub-customizer.desktop sed -i '/^X-KDE/d' ${PKG}/usr/share/applications/grub-customizer.desktop install -d ${PKG}/etc/grub-customizer install -Dm644 ${SRC}/grub.cfg ${PKG}/etc/grub-customizer/grub.cfg sed -i "s/Categories=.*/Categories=System;/" $PKG/usr/share/applications/grub-customizer.desktop || return 1 sed -i "s/Categories=.*/Categories=System;/" $PKG/usr/share/applications/grub-customizer-kde.desktop || return 1 echo OnlyShowIn=KDE >> $PKG/usr/share/applications/grub-customizer-kde.desktop || return 1 echo NotShowIn=KDE >> $PKG/usr/share/applications/grub-customizer.desktop || return 1 }