wok annotate dillo/receipt @ rev 25352

created recipe for tesseract-ocr-data
author Hans-G?nter Theisgen
date Tue Jul 26 14:01:02 2022 +0100 (2022-07-26)
parents 5520f22a2647
children a190bcfebf1e
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"
Hans-G?nter@22646 10 WEB_SITE="https://www.dillo.org/"
Hans-G?nter@22646 11
pankso@2795 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@20669 13 WGET_URL="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@24439 23 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24439 24 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed 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 }