wok view clipit/receipt @ rev 25598

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 12:03:07 2023 +0000 (10 months ago)
parents 5ea0ce1cecc0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="clipit"
4 VERSION="1.4.4"
5 CATEGORY="utilities"
6 SHORT_DESC="Lightweight, fully featured GTK+ clipboard manager"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL3"
9 WEB_SITE="https://github.com/CristianHenzel/ClipIt"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/CristianHenzel/ClipIt/archive/v$VERSION.tar.gz"
14 DEPENDS="gtk+"
15 BUILD_DEPENDS="autoconf automake gtk+-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # fix subcategory for cascade menu
28 sed -i 's|Categories=.*|Categories=GTK;Utility;TextTools;|' \
29 $src/data/clipit.desktop.in
30 # Do not use clipit icon
31 sed -i 's|clipit-trayicon|edit-paste|' $src/data/clipit*.desktop.in
32 sed -i 's|clipit-trayicon|edit-paste|' $src/src/main.c
34 ./autogen.sh \
35 --sysconfdir=/etc \
36 $CONFIGURE_ARGS &&
37 ./configure &&
38 make &&
39 make install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 cp -a $install/* $fs
46 rm -rf $fs/usr/share/icons $fs/usr/share/locale $fs/usr/share/man
47 }