wok annotate kazehakase/receipt @ rev 25237

updated python-simplejson (3.17.0 -> 3.17.6)
author Hans-G?nter Theisgen
date Wed Jul 13 17:45:54 2022 +0100 (2022-07-13)
parents cf080d84743a
children
rev   line source
al@18545 1 # SliTaz package receipt.
al@18545 2
al@18545 3 PACKAGE="kazehakase"
al@18545 4 VERSION="0.5.8"
al@18545 5 CATEGORY="network"
al@18545 6 SHORT_DESC="GTK+ web browser using Webkit rendering engine"
al@18545 7 MAINTAINER="al.bobylev@gmail.com"
al@18545 8 LICENSE="GPL2"
pascal@20673 9 WEB_SITE="https://osdn.net/projects/kazehakase/"
al@18545 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@18545 11 WGET_URL="http://iij.dl.osdn.jp/kazehakase/43802/$TARBALL"
al@18545 12 PATCH_URL="http://http.debian.net/debian/pool/main/k/kazehakase/kazehakase_0.5.8-4.diff.gz"
al@18545 13 TAGS="web-browser"
al@18545 14
al@18545 15 DEPENDS="libwebkit"
al@18545 16 BUILD_DEPENDS="libtool automake autoconf \
al@18545 17 gtk+-dev dbus-glib-dev libwebkit-dev gnutls-dev xorg-libSM-dev zlib-dev \
al@18545 18 util-linux-uuid-dev libxslt-dev"
al@18545 19
pascal@24419 20 # What is the latest version available today?
pascal@24419 21 current_version()
pascal@24419 22 {
pascal@24419 23 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24419 24 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24419 25 }
pascal@24419 26
al@18545 27 # Rules to configure and make the package.
al@18545 28 compile_rules()
al@18545 29 {
al@18545 30 PATCH_GZ="$(basename "$PATCH_URL")"
al@18545 31 [ -e "$SRC/$PATCH_GZ" ] || wget -O "$SRC/$PATCH_GZ" "$PATCH_URL"
al@18545 32 cp "$SRC/$PATCH_GZ" $src
al@18545 33 gzip -d $PATCH_GZ
al@18545 34 patch -p1 -i ${PATCH_GZ%.gz}
al@18545 35 for i in $(cat $src/debian/patches/00list); do
al@18545 36 patch -p1 -i $src/debian/patches/$i.dpatch
al@18545 37 done
al@18545 38
al@18545 39 for i in $stuff/*.patch; do
al@18545 40 patch -p1 -i $i
al@18545 41 done
al@18545 42
al@18545 43 for i in codeset gettext glibc21 iconv isc-posix lcmessage progtest; do
al@18545 44 [ -e "/usr/share/aclocal/$i.m4" ] &&
al@18545 45 cp /usr/share/aclocal/$i.m4 $src/macros
al@18545 46 done
al@18545 47
al@18545 48 cp -f /usr/share/automake-*/missing .
al@18545 49 sed -i 's|G_CONST_RETURN|const|' $src/libegg/pixbufthumbnail/egg-pixbuf-thumbnail.h
pascal@23060 50
pascal@23060 51 # gnutls_certificate_type_set_priority is depredicated
pascal@23060 52 sed -i '/gnutls_certificate_type_set_priority/d' $src/src/net/kz-http.c
al@18545 53
al@18545 54 ./autogen.sh
al@18545 55
al@18545 56 ./configure \
al@18545 57 --prefix=/usr \
al@18545 58 --sysconfdir=/etc \
al@18545 59 $CONFIGURE_ARGS && make && make install
al@18545 60 }
al@18545 61
al@18545 62 # Rules to gen a SliTaz package suitable for Tazpkg.
al@18545 63 genpkg_rules()
al@18545 64 {
al@18545 65 cp -a $install/* $fs
al@18545 66 find $fs -name '*.la' -delete
al@18545 67 }