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