wok annotate surf/receipt @ rev 25074

Add python-ipaddress
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 13 19:39:39 2022 +0000 (23 months ago)
parents 5d53e8ccbc8d
children
rev   line source
mallory@6302 1 # SliTaz package receipt.
mallory@6302 2
mallory@6302 3 PACKAGE="surf"
pankso@16427 4 VERSION="0.6"
mallory@6302 5 CATEGORY="network"
samuel_trassare@12057 6 SHORT_DESC="Surf is a simple web browser based on WebKit/GTK+"
mallory@6302 7 MAINTAINER="mallory@sweetpeople.org"
pascal@15316 8 LICENSE="MIT"
mallory@6302 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
mallory@6302 10 WEB_SITE="http://surf.suckless.org/"
mallory@6302 11 WGET_URL="http://dl.suckless.org/$PACKAGE/$TARBALL"
mallory@6302 12 SUGGESTED="dmenu"
al@17501 13 TAGS="web-browser"
mallory@6302 14
pascal@15110 15 DEPENDS="libwebkit libsoup libxml2 gnutls gtk+"
pascal@15110 16 BUILD_DEPENDS="libwebkit-dev libsoup-dev libxml2-dev gnutls-dev gtk+-dev"
pascal@15110 17
pascal@24462 18 # What is the latest version available today?
pascal@24462 19 current_version()
pascal@24462 20 {
pascal@24462 21 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24462 22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24462 23 }
pascal@24462 24
mallory@6302 25 # Rules to configure and make the package.
mallory@6302 26 compile_rules()
mallory@6302 27 {
mallory@6302 28 cd $src
pascal@15316 29 sed -i 's/^LIBS.*/& -lX11/' config.mk
pascal@15110 30 make && make DESTDIR=$DESTDIR install
mallory@6302 31 }
mallory@6302 32
mallory@6302 33 # Rules to gen a SliTaz package suitable for Tazpkg.
mallory@6302 34 genpkg_rules()
mallory@6302 35 {
mallory@6302 36 # Surf binary
mallory@6302 37 mkdir -p $fs/usr
pascal@15110 38 cp -a $install/usr/local/bin $fs/usr
mallory@6302 39 }
mallory@6302 40