wok annotate dillo/receipt @ rev 25791

Up dropbear (2024.86), libssh2 (1.11.1), xz (5.6.3)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 23 13:27:53 2024 +0000 (4 weeks ago)
parents 73e5a39701e3
children
rev   line source
pankso@2795 1 # SliTaz package receipt.
pankso@2795 2
pankso@2795 3 PACKAGE="dillo"
Hans-G?nter@22646 4 VERSION="3.0.5"
pankso@2795 5 CATEGORY="network"
Hans-G?nter@22646 6 TAGS="web-browser"
Hans-G?nter@22646 7 SHORT_DESC="Light and fast web browser using FLTK."
pankso@2795 8 MAINTAINER="pankso@slitaz.org"
pascal@14999 9 LICENSE="GPL3"
pascal@25362 10 WEB_SITE="https://web.archive.org/web/20220511073123/https://www.dillo.org/"
Hans-G?nter@22646 11
pankso@2795 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@25363 13 WGET_URL="https://web.archive.org/web/20210410093347if_/https://www.dillo.org/download/$TARBALL"
Hans-G?nter@22646 14
Hans-G?nter@22646 15 DEPENDS="fltk gcc-lib-base jpeg libpng openssl xorg-libX11 zlib"
Hans-G?nter@22646 16 BUILD_DEPENDS="fltk-dev jpeg-dev libpng-dev openssl-dev zlib-dev"
Hans-G?nter@22646 17
pankso@16359 18 HOST_ARCH="i486 arm"
pascal@14999 19
pascal@24439 20 # What is the latest version available today?
pascal@24439 21 current_version()
pascal@24439 22 {
pascal@25608 23 wget -O - $WEB_SITE 2>/dev/null | \
pascal@25608 24 sed '/latest one/!d;s|.*dillo-||;s|<.*||;q'
pascal@24439 25 }
pascal@24439 26
pankso@2795 27 # Rules to configure and make the package.
pankso@2795 28 compile_rules()
pankso@2795 29 {
Hans-G?nter@22646 30 # patch -p0 < $stuff/fltk-1.3.3.u
Hans-G?nter@22646 31 cp -f $stuff/pixmaps.slitaz.h src/pixmaps.h
Hans-G?nter@22646 32
Hans-G?nter@22646 33 ./configure \
Hans-G?nter@22646 34 --sysconfdir=/etc \
Hans-G?nter@22646 35 --prefix=/usr \
Hans-G?nter@22646 36 --enable-ssl \
pankso@2795 37 $CONFIGURE_ARGS &&
Hans-G?nter@22646 38 make &&
Hans-G?nter@22646 39 make install
pankso@2795 40 }
pankso@2795 41
pankso@2795 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@2795 43 genpkg_rules()
pankso@2795 44 {
Hans-G?nter@22646 45 mkdir -p $fs/usr/lib
Hans-G?nter@22646 46 mkdir -p $fs/usr/share
Hans-G?nter@22646 47
Hans-G?nter@22646 48 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22646 49 cp -a $install/usr/lib/dillo $fs/usr/lib
Hans-G?nter@22646 50 strip -s $fs/usr/lib/dillo/dpi/*/*
Hans-G?nter@22646 51 chmod +x $fs/usr/bin/*
Hans-G?nter@22646 52
Hans-G?nter@22646 53 # Configuration files with custom dillorc to have webhome
Hans-G?nter@22646 54 cp -a $install/etc $fs
Hans-G?nter@22646 55 cp -a $stuff/dillorc $fs/etc/dillo
Hans-G?nter@22646 56 cp -a $stuff/webhome $fs/usr/share
Hans-G?nter@22646 57
pankso@16449 58 # Dillo version for user agent string
pankso@16449 59 sed -i s"/_dillo_version_/$VERSION/" $fs/etc/dillo/dillorc
Hans-G?nter@22646 60
Hans-G?nter@22646 61 chown -R root.root $fs
pankso@2795 62 }