wok-current view vte-gtk3/receipt @ rev 25685
Add checkspace / fetchall feature for tazpkg
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Mar 14 20:28:39 2024 +0000 (8 months ago) |
parents | |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="vte-gtk3"
4 SOURCE="vte"
5 VERSION="0.50.2" # Also --> python-vte
6 CATEGORY="utilities"
7 SHORT_DESC="Terminal capabilities for GTK+ widgets."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 TARBALL="$SOURCE-$VERSION.tar.xz"
11 WEB_SITE="https://www.gnome.org/"
12 WGET_URL="$GNOME_MIRROR/$SOURCE/${VERSION%.*}/$TARBALL"
13 HOST_ARCH="i486 arm"
15 DEPENDS="gtk+ gtk+3 libgnutls gdk-pixbuf ncurses xorg-libXdamage pcre2"
16 BUILD_DEPENDS="gtk+-dev ncurses-dev"
18 # Handle cross compilation.
19 case "$ARCH" in
20 i?86)
21 BUILD_DEPENDS="pygtk-dev python-dev gobject-introspection-dev perl
22 perl-xml-parser ncurses-dev pcre2-dev gtk+3-dev gnutls-dev gperf vala"
23 ARCH_ARGS="--enable-introspection=yes" ;;
24 arm)
25 ARCH_ARGS="--enable-introspection=no" ;;
26 esac
28 current_version()
29 {
30 wget -O - $GNOME_MIRROR/$PACKAGE/$(wget -O - $GNOME_MIRROR/$PACKAGE 2>/dev/null | \
31 sed '/href="[0-9]/!d;s|.*href="||;s|/" .*||' | sort -Vr | sed q) 2>/dev/null | \
32 sed "/href=\"$PACKAGE-[0-9]/!d;s|.*$PACKAGE-||;s|.[a-z].*||" | sort -Vr | sed q
33 }
35 # Rules to configure and make the package.
36 compile_rules()
37 {
38 # Fix build with vala
39 # see https://gitlab.gnome.org/GNOME/vte/issues/76
40 patch -p1 < $stuff/vte-vala.patch
42 ./configure \
43 --libexecdir=/usr/lib/vte \
44 --with-html-dir=/usr/share/doc \
45 --with-pcre \
46 --disable-static \
47 $CONFIGURE_ARGS &&
48 make && make install
49 # add 'Home' and 'End' keys
50 #sed -i '9i\ \ \ \ :kh=\\E[H:@7=\\E[F:\\' $install/usr/share/vte/termcap-0.0/xterm
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 mkdir -p $fs/usr/lib $fs/usr/share
57 cp -a $install/usr/lib/*.so* $fs/usr/lib
58 #cp -a $install/usr/lib/vte $fs/usr/lib
59 #cp -a $install/usr/share/vte $fs/usr/share
60 }