#Maintainer: Dimitris Tzemos pkgname=grub-customizer pkgver=2.2.1 pkgrel=1dj source=(http://people.salixos.org/djemos/grub-customizer/$pkgname-$pkgver.tar.gz) 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=$startdir/pkg || return 1 cp $startdir/pkg/usr/share/applications/grub-customizer.desktop $startdir/pkg/usr/share/applications/grub-customizer-kde.desktop || return 1 sed -i "s/Exec=.*/Exec=gksu \/usr\/bin\/grub-customizer/" $startdir/pkg/usr/share/applications/grub-customizer.desktop || return 1 sed -i "s/Exec=.*/Exec=kdesu \/usr\/bin\/grub-customizer/" $startdir/pkg/usr/share/applications/grub-customizer-kde.desktop || return 1 sed -i "s/Categories=.*/Categories=System;/" $startdir/pkg/usr/share/applications/grub-customizer.desktop || return 1 sed -i "s/Categories=.*/Categories=System;/" $startdir/pkg/usr/share/applications/grub-customizer-kde.desktop || return 1 echo OnlyShowIn=KDE >> $startdir/pkg/usr/share/applications/grub-customizer-kde.desktop || return 1 echo NotShowIn=KDE >> $startdir/pkg/usr/share/applications/grub-customizer.desktop || return 1 }