#Packager: Chris Farrell pkgname=surf pkgver=0.5 pkgrel=1cf source=("http://dl.suckless.org/surf/surf-0.5.tar.gz" "icons.tar.gz" "README.mimetype" "surf.desktop" "surf-0.3-homepage.diff") sourcetemplate=http://people.salixos.org/timcowchip/$pkgname/$pkgver/ docs=("authors" "install" "readme" "README.mimetype" "copying" "dependencies") url=http://surf.suckless.org/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "Surf (a simple web browser based on WebKit/GTK+)" "Surf is able to display websites and follow links." "Surf supports the XEmbed protocol" "Surf can be embeded in another application." "Surf can be pointed to another URI by setting its XProperties" "http://surf.suckless.org/" ) build() { cd $startdir/src/$pkgname-$pkgver patch -p1 < $startdir/src/surf-0.3-homepage.diff || exit 1 sed -i '14 i\#define HOMEPAGE "http://www.salixos.org/start/en/"' config.def.h sed -i '/^CFLAGS/s/=/+=/' config.mk make || return 1 make install PREFIX=/usr \ MANPREFIX=/usr/man \ DESTDIR=$startdir/pkg # Copy icons to the right place ICONSIZES="128 96 72 64 48" for i in $ICONSIZES; do mkdir -p $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps; mv $startdir/src/$pkgname-$i.png $startdir/pkg/usr/share/icons/hicolor/$i\x$i/apps/$pkgname.png; done; mkdir -p $startdir/pkg/usr/share/pixmaps cp $startdir/pkg/usr/share/icons/hicolor/96x96/apps/$pkgname.png $startdir/pkg/usr/share/pixmaps; mkdir -p $startdir/pkg/usr/share/applications cp $startdir/src/surf.desktop $startdir/pkg/usr/share/applications/ }