# vim: set syn=sh: # Packager: Phill Watkins pkgname=simpleburn pkgver=1.6.0.2 pkgrel=1pw #arch=noarch source=("http://simpleburn.tuxfamily.org/IMG/bz2/simpleburn-$pkgver.tar.bz2" "media-optical.svg.gz") sourcetemplate=http://people.salixos.org/pwatk/packages/13.2/xap/$pkgname #docs=() url=http://simpleburn.tuxfamily.org/ options=('nosrcpack') doinst() { if [ -x usr/bin/update-desktop-database ]; then usr/bin/update-desktop-database > /dev/null 2>&1 fi if [ -x usr/bin/gtk-update-icon-cache ]; then usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor > /dev/null 2>&1 fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "simpleburn (CD / DVD burning and extraction tool)" "SimpleBurn is a minimalistic application for burning and extracting" "CDs and DVDs." ) build() { set -e cd $startdir/src/$pkgname-$pkgver cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DDETECTION=HAL \ -DBURNING=CDRTOOLS \ -DALLOW_DEVICES_SYMLINKS=OFF \ -DISOSIZE=OFF make -j $numjobs make install DESTDIR=$startdir/pkg # lets use a less fugly icon install -Dm 0644 $startdir/src/media-optical.svg \ $startdir/pkg/usr/share/icons/hicolor/scalable/apps/simpleburn.svg for icon in 16 22 24 32 48 ;do install -d $startdir/pkg/usr/share/icons/hicolor/${icon}x${icon}/apps convert -resize ${icon}x${icon} -background none $startdir/src/media-optical.svg \ $startdir/pkg/usr/share/icons/hicolor/${icon}x${icon}/apps/simpleburn.png done # the path for the window/taskbar icon is hardcoded ( cd $startdir/pkg/usr/share/pixmaps rm simpleburn.png ln -s ../icons/hicolor/scalable/apps/simpleburn.svg simpleburn.png ) set +e }