wok-next annotate netsurf/receipt @ rev 15860
libmowgli: update genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 30 09:02:32 2014 +0000 (2014-01-30) |
parents | 7896f0694ef6 |
children | e62fe73c97ae |
rev | line source |
---|---|
pankso@2827 | 1 # SliTaz package receipt. |
pankso@2827 | 2 |
pankso@2827 | 3 PACKAGE="netsurf" |
pascal@15652 | 4 VERSION="2.9" |
pankso@2827 | 5 CATEGORY="network" |
pankso@2827 | 6 SHORT_DESC="A simple, fast and light web browser using GTK." |
pankso@2827 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
pascal@15652 | 9 TARBALL="$PACKAGE-$VERSION-full-src.tar.gz" |
pascal@15002 | 10 WEB_SITE="http://www.netsurf-browser.org/" |
pascal@15652 | 11 WGET_URL="http://download.netsurf-browser.org/netsurf/releases/source-full/$TARBALL" |
pascal@15002 | 12 TAGS="browser" |
pascal@15002 | 13 |
pankso@4334 | 14 DEPENDS="gtk+ libssl libpng jpeg lcms libparserutils hubbub libnsgif \ |
slaxemulator@6531 | 15 libcurl libglade librsvg libgsf libcss libmng zlib libxml2" |
slaxemulator@6531 | 16 BUILD_DEPENDS="$DEPENDS gtk+-dev libglade-dev openssl-dev libpng-dev jpeg-dev lcms-dev \ |
erjo@5932 | 17 re2c lemon libparserutils-dev hubbub-dev libnsgif-dev librsvg-dev curl-dev pango-dev \ |
pascal@11527 | 18 libcss-dev libwapcaplet-dev libmng-dev zlib-dev libxml2-dev libcroco" |
pankso@2827 | 19 |
pankso@2827 | 20 # Rules to configure and make the package. |
pankso@2827 | 21 compile_rules() |
pankso@2827 | 22 { |
pankso@4175 | 23 mv netsurf $PACKAGE-$VERSION 2>/dev/null |
pankso@2827 | 24 cd $src |
slaxemulator@9700 | 25 cp -a $stuff/Makefile.config . |
erjo@5932 | 26 |
erjo@5932 | 27 # Fix install target |
erjo@5932 | 28 sed -i 's/cp -vRL/cp -RL/' Makefile |
erjo@5932 | 29 sed -i 's/cp -v/cp /' Makefile |
erjo@5932 | 30 |
pascal@15002 | 31 make install DESTDIR=$DESTDIR PREFIX=/usr |
slaxemulator@9241 | 32 |
pankso@2827 | 33 } |
pankso@2827 | 34 |
pankso@2827 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2827 | 36 genpkg_rules() |
pankso@2827 | 37 { |
erjo@5932 | 38 mkdir -p $fs/usr/share \ |
erjo@5932 | 39 $fs/usr/lib/netsurf |
erjo@5932 | 40 |
pascal@15002 | 41 cp -a $install/usr/bin $fs/usr |
pascal@15002 | 42 cp -a $install/usr/share/netsurf $fs/usr/share |
erjo@5932 | 43 |
erjo@5932 | 44 |
pankso@2827 | 45 # Remove files to save some space |
pankso@2827 | 46 rm -rf $fs/usr/share/netsurf/docs |
pankso@2827 | 47 rm -rf $fs/usr/share/netsurf/*.xpm |
pankso@2827 | 48 rm -rf $fs/usr/share/netsurf/license |
pankso@2835 | 49 # Webhome |
pankso@2835 | 50 cp -a stuff/webhome $fs/usr/share |
pankso@2835 | 51 chown -R root.root $fs |
pankso@2827 | 52 } |