# vim: set syn=sh: # Packager: Phill Watkins pkgname=gencfs pkgver=1.0.3 pkgrel=1pw #arch=noarch source=("http://download.tuxfamily.org/sallu/utilities/gencfs-$pkgver.tar.bz2" "locked.svg.gz") sourcetemplate=http://people.salixos.org/pwatk/packages/13.2/xap/$pkgname #docs=() url=http://sallu.tuxfamily.org options=('nosrcpack') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "gencfs (EncFS GUI for encrypted directory mounting)" "GEncFS is an EncFS GUI for encrypted directory mounting." ) build() { set -e cd $startdir/src/$pkgname-$pkgver cmake -DCMAKE_INSTALL_PREFIX=/usr make -j $numjobs make install DESTDIR=$startdir/pkg # lets use a less fugly icon install -Dm 0644 $startdir/src/locked.svg \ $startdir/pkg/usr/share/icons/hicolor/scalable/apps/gencfs.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/locked.svg \ $startdir/pkg/usr/share/icons/hicolor/${icon}x${icon}/apps/gencfs.png done # the path for the window/taskbar icon is hardcoded ( cd $startdir/pkg/usr/share/pixmaps rm gencfs.png ln -s ../icons/hicolor/scalable/apps/gencfs.svg gencfs.png ) set +e }