#Packager: Dimitris Tzemos pkgname=grub-scripts pkgver=0.0.2 pkgrel=1dj arch=noarch source=("$pkgname-$pkgver.tar.gz") sourcetemplate=http://people.salixos.org/djemos/salix/$pkgname/ docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") options=('noautodotnew') dotnew=('etc/default/grub') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (scripts for the second GNU GRand Unified Bootloader)" ) build() { cd $SRC/$pkgname-$pkgver || return 1 install -D -m644 $SRC/$pkgname-$pkgver/grub-default $PKG/etc/default/grub || return 1 install -D -m644 $SRC/$pkgname-$pkgver/salix.png $PKG/boot/grub/salix.png || return 1 install -D -m755 $SRC/$pkgname-$pkgver/update-grub $PKG/usr/sbin/update-grub || return 1 install -D -m755 $SRC/$pkgname-$pkgver/grubconfig $PKG/sbin/grubconfig || return 1 install -D -m755 $SRC/$pkgname-$pkgver/setup.grubconfig $PKG/var/log/setup/setup.grubconfig || return 1 install -D -m644 $SRC/$pkgname-$pkgver/grub-update.png $PKG/usr/share/icons/hicolor/48x48/apps/grub-update.png || return 1 install -D -m644 $SRC/$pkgname-$pkgver/grubsetup.png $PKG/usr/share/icons/hicolor/48x48/apps/grubsetup.png || return 1 install -D -m644 $SRC/$pkgname-$pkgver/grub-update.desktop $PKG/usr/share/applications/grub-update.desktop || return 1 install -D -m644 $SRC/$pkgname-$pkgver/grubsetup.desktop $PKG/usr/share/applications/grubsetup.desktop || return 1 install -D -m644 $SRC/$pkgname-$pkgver/grub-update-kde.desktop $PKG/usr/share/applications/grub-update-kde.desktop || return 1 install -D -m644 $SRC/$pkgname-$pkgver/grubsetup-kde.desktop $PKG/usr/share/applications/grubsetup-kde.desktop || return 1 } doinst() { # update the mime desktop database if [ -x usr/bin/update-desktop-database ]; then usr/bin/update-desktop-database -q fi # update the mime database if [ -x usr/bin/update-mime-database ]; then usr/bin/update-mime-database usr/share/mime > /dev/null 2>&1 fi }