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