wok-current view gucharmap/receipt @ rev 24111
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 28 17:26:43 2021 +0000 (2021-09-28) |
parents | da534f9e180c |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="gucharmap"
4 VERSION="3.0.1"
5 CATEGORY="utilities"
6 SHORT_DESC="GNOME Character Map (GTK+2)"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://wiki.gnome.org/action/show/Apps/Gucharmap"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
13 DEPENDS="gtk+ xorg-libXdamage"
14 BUILD_DEPENDS="itstool libxml2-tools glib-dev libgio-dev gtk+-dev"
15 SPLIT="gucharmap-i18n"
17 current_version()
18 {
19 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
20 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure \
27 --sysconfdir=/etc \
28 --disable-maintainer-mode \
29 --disable-gconf \
30 --disable-schemas-install \
31 --disable-scrollkeeper \
32 --with-gtk=2.0 \
33 $CONFIGURE_ARGS &&
34 make && make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/bin $fs/usr/lib $fs/usr/share
41 cp -a $install/etc $fs
42 cp -a $install/usr/bin/$PACKAGE $fs/usr/bin
43 cp -a $install/usr/lib/*.so* $fs/usr/lib
44 cp -a $install/usr/share/applications $fs/usr/share
45 }