wok annotate ibus/receipt @ rev 24891

lynx: use ncursesw (tanks ceel)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 07 07:20:18 2022 +0000 (2022-04-07)
parents 8dd8bab3f0ca
children 00e3b45c063b
rev   line source
pascal@13358 1 # SliTaz package receipt.
pascal@13358 2
pascal@13358 3 PACKAGE="ibus"
pascal@13358 4 VERSION="1.4.2"
pascal@13358 5 CATEGORY="utilities"
pascal@13358 6 SHORT_DESC="Intelligent Input Bus for Linux / Unix OS"
pascal@13358 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14996 8 LICENSE="LGPL2.1"
pascal@20672 9 WEB_SITE="https://github.com/ibus/ibus/wiki"
pascal@13358 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@13358 11 WGET_URL="http://ibus.googlecode.com/files/$TARBALL"
pascal@13358 12
pascal@13358 13 DEPENDS="gtk+"
pascal@13358 14 BUILD_DEPENDS="gtk+-dev GConf-dev python-dev dbus-python-dev dbus-glib-dev \
pascal@13358 15 intltool gettext perl iso-codes"
pascal@13358 16
pascal@24308 17 # What is the latest version available today?
pascal@24308 18 current_version()
pascal@24308 19 {
pascal@24308 20 wget -O - https://github.com/ibus/ibus/releases 2>/dev/null | \
pascal@24308 21 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
pascal@24308 22 }
pascal@24308 23
pascal@13358 24 # Rules to configure and make the package.
pascal@13358 25 compile_rules()
pascal@13358 26 {
pascal@15340 27 mkdir -p $DESTDIR$(ls -d /usr/lib/gtk-2*/2*/immodules/)
pascal@13358 28 ./configure --prefix=/usr \
pascal@13358 29 --mandir=/usr/share/man \
pascal@13358 30 --infodir=/usr/share/info \
pascal@13358 31 --disable-gtk3 \
pascal@13358 32 $CONFIGURE_ARGS &&
pascal@15340 33 make && make DESTDIR=$DESTDIR install
pascal@13358 34 }
pascal@13358 35
pascal@13358 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13358 37 genpkg_rules()
pascal@13358 38 {
pascal@15340 39 cp -a $src/client/gtk2/im-ibus.la $install/usr/lib/gtk-2*/2*/immodules/
pascal@13358 40 cp -a $install/* $fs
pascal@15320 41 rm -rf $fs/usr/include
pascal@15320 42 rm -rf $fs/usr/lib/pkgconfig
pascal@15320 43 rm -rf $fs/usr/share/gtk-doc
pascal@15320 44 find $fs/usr/lib | grep 'a$' | xargs rm -f
pascal@13358 45 }