wok-current annotate netsurf/receipt @ rev 24507
updated easy-rsa (3.0.6 -> 3.0.8)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Feb 20 16:37:53 2022 +0100 (2022-02-20) |
parents | 3038c692c808 |
children |
rev | line source |
---|---|
pankso@2827 | 1 # SliTaz package receipt. |
pankso@2827 | 2 |
pankso@2827 | 3 PACKAGE="netsurf" |
Hans-G?nter@22402 | 4 VERSION="3.9" |
pankso@2827 | 5 CATEGORY="network" |
Hans-G?nter@22402 | 6 TAGS="web-browser" |
pankso@2827 | 7 SHORT_DESC="A simple, fast and light web browser using GTK." |
pankso@2827 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15002 | 9 LICENSE="GPL2" |
Hans-G?nter@22402 | 10 WEB_SITE="https://www.netsurf-browser.org/" |
Hans-G?nter@22402 | 11 |
psychomaniak@16836 | 12 TARBALL="$PACKAGE-all-$VERSION.tar.gz" |
pascal@15652 | 13 WGET_URL="http://download.netsurf-browser.org/netsurf/releases/source-full/$TARBALL" |
pascal@15002 | 14 |
Hans-G?nter@22402 | 15 DEPENDS="gtk+ hubbub jpeg lcms libcss libcurl libglade libgsf libmng libnsgif |
Hans-G?nter@22402 | 16 libparserutils libpng librsvg libssl libxml2 zlib" |
Hans-G?nter@22402 | 17 BUILD_DEPENDS="$DEPENDS bison curl-dev expat-dev flex gperf gtk+-dev hubbub-dev |
Hans-G?nter@22402 | 18 jpeg-dev lcms-dev lemon libcroco libcss-dev libglade-dev libmng-dev |
Hans-G?nter@22402 | 19 libnsgif-dev libparserutils-dev libpng-dev librsvg-dev libwapcaplet-dev |
Hans-G?nter@22402 | 20 libxml2-dev openssl-dev pango-dev perl-html-parser perl-html-tagset re2c |
Hans-G?nter@22402 | 21 vim zlib-dev" |
pankso@2827 | 22 |
pascal@24453 | 23 # What is the latest version available today? |
pascal@24453 | 24 current_version() |
pascal@24453 | 25 { |
pascal@24453 | 26 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24453 | 27 sed '/netsurf-all-[0-9]/!d;/tar/!d;s|.*netsurf-all-||;s|.tar.*||' | sort -Vr | sed q |
pascal@24453 | 28 } |
pascal@24453 | 29 |
pankso@2827 | 30 # Rules to configure and make the package. |
pankso@2827 | 31 compile_rules() |
pankso@2827 | 32 { |
psychomaniak@16848 | 33 cp -a $stuff/Makefile.config . |
erjo@5932 | 34 |
erjo@5932 | 35 # Fix install target |
psychomaniak@16852 | 36 #sed -i 's/cp -vRL/cp -RL/' Makefile |
psychomaniak@16852 | 37 #sed -i 's/cp -v/cp /' Makefile |
Hans-G?nter@22402 | 38 |
Hans-G?nter@22402 | 39 make install \ |
Hans-G?nter@22402 | 40 DESTDIR=$DESTDIR \ |
Hans-G?nter@22402 | 41 PREFIX=/usr \ |
Hans-G?nter@22402 | 42 TARGET=gtk \ |
Hans-G?nter@22402 | 43 NETSURF_USE_WEBP=NO \ |
Hans-G?nter@22402 | 44 NETSURF_GTK_MAJOR=2 \ |
psychomaniak@16854 | 45 NETSURF_USE_VIDEO=NO |
pankso@2827 | 46 } |
pankso@2827 | 47 |
pankso@2827 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2827 | 49 genpkg_rules() |
pankso@2827 | 50 { |
Hans-G?nter@22402 | 51 mkdir -p $fs/usr/share |
Hans-G?nter@22402 | 52 mkdir -p $fs/usr/lib/netsurf |
Hans-G?nter@22402 | 53 |
Hans-G?nter@22402 | 54 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22402 | 55 cp -a $install/usr/share/netsurf $fs/usr/share |
Hans-G?nter@22402 | 56 |
pankso@2827 | 57 # Remove files to save some space |
pankso@2827 | 58 rm -rf $fs/usr/share/netsurf/docs |
pankso@2827 | 59 rm -rf $fs/usr/share/netsurf/*.xpm |
pankso@2827 | 60 rm -rf $fs/usr/share/netsurf/license |
Hans-G?nter@22402 | 61 |
pankso@2835 | 62 # Webhome |
Hans-G?nter@22402 | 63 cp -a $stuff/welcome.* $fs/usr/share/netsurf |
pankso@19713 | 64 rm $fs/usr/share/netsurf/*/welcome.html |
pankso@2835 | 65 chown -R root.root $fs |
pankso@2827 | 66 } |