wok view gucharmap3/receipt @ rev 24596

updated gftp (2.0.19 -> 2.9.1b)
author Hans-G?nter Theisgen
date Tue Mar 01 15:53:52 2022 +0100 (2022-03-01)
parents 984cad69029c
children
line source
1 # SliTaz package receipt.
3 PACKAGE="gucharmap3"
4 VERSION="3.18.2"
5 CATEGORY="utilities"
6 SHORT_DESC="GNOME Character Map (GTK+3)"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL3"
9 TARBALL="gucharmap-$VERSION.tar.xz"
10 WEB_SITE="https://wiki.gnome.org/action/show/Apps/Gucharmap"
11 WGET_URL="$GNOME_MIRROR/gucharmap/${VERSION%.*}/$TARBALL"
13 DEPENDS="gtk+3 xorg-libXdamage"
14 BUILD_DEPENDS="automake gtk-doc libtool itstool libxml2-tools glib-dev file \
15 libgio-dev gtk+3-dev desktop-file-utils-extra gobject-introspection-dev vala"
16 SPLIT="gucharmap3-i18n"
18 current_version()
19 {
20 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
21 sed '/gucharmap-[0-9]/!d;/tar/!d;s|.*gucharmap-\(.*\).tar.*".*|\1|' | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # Idea is to have two nonintersecting packages:
28 # gucharmap (for GTK+2) and gucharmap3 (for GTK+3)
29 sed -i '/AC_INIT/s|gucharmap|&3|3; s|GETTEXT_PACKAGE=.*$|&3|' \
30 $src/configure.ac
31 # Disable stuff we never had
32 sed -i '/GNOME_DEBUG_CHECK/d; /YELP/d' $src/configure.ac
33 sed -i '/YELP/d' $src/help/Makefile.am
35 ./autogen.sh --program-suffix=3
36 make && make install
38 find $install/usr/bin -type l -delete
39 mv $install/usr/share/applications/gucharmap.desktop \
40 $install/usr/share/applications/gucharmap3.desktop
41 sed -i 's|Exec=gucharmap|&3|' \
42 $install/usr/share/applications/gucharmap3.desktop
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/lib $fs/usr/share/applications
49 cp -a $install/usr/bin $fs/usr
50 cp -a $install/usr/lib/*.so* $fs/usr/lib
51 cp -a $install/usr/share/applications $fs/usr/share
52 cp -a $install/usr/share/glib-2.0 $fs/usr/share
53 }