wok-6.x annotate clipit/receipt @ rev 24055
Add current_version for most github hosted softwares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 08:46:05 2021 +0000 (2021-06-08) |
parents | 53c1379e13fa |
children |
rev | line source |
---|---|
al@15212 | 1 # SliTaz package receipt. |
al@15212 | 2 |
al@15212 | 3 PACKAGE="clipit" |
Hans-G?nter@20796 | 4 VERSION="1.4.4" |
al@15212 | 5 CATEGORY="utilities" |
al@15212 | 6 SHORT_DESC="Lightweight, fully featured GTK+ clipboard manager" |
al@15212 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@15212 | 8 LICENSE="GPL3" |
pascal@22632 | 9 WEB_SITE="https://github.com/CristianHenzel/ClipIt" |
Hans-G?nter@20796 | 10 |
al@15212 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@20796 | 12 WGET_URL="https://github.com/CristianHenzel/ClipIt/archive/v$VERSION.tar.gz" |
al@15212 | 13 |
al@15212 | 14 DEPENDS="gtk+" |
Hans-G?nter@20798 | 15 BUILD_DEPENDS="autoconf automake gtk+-dev" |
al@15212 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
al@15212 | 23 # Rules to configure and make the package. |
al@15212 | 24 compile_rules() |
al@15212 | 25 { |
al@15212 | 26 # fix subcategory for cascade menu |
al@15212 | 27 sed -i 's|Categories=.*|Categories=GTK;Utility;TextTools;|' \ |
al@15212 | 28 $src/data/clipit.desktop.in |
Hans-G?nter@20796 | 29 # Do not use clipit icon |
al@15275 | 30 sed -i 's|clipit-trayicon|edit-paste|' $src/data/clipit*.desktop.in |
al@15275 | 31 sed -i 's|clipit-trayicon|edit-paste|' $src/src/main.c |
al@15212 | 32 |
Hans-G?nter@20796 | 33 ./autogen.sh \ |
al@15275 | 34 --sysconfdir=/etc \ |
al@15275 | 35 $CONFIGURE_ARGS && |
Hans-G?nter@20796 | 36 ./configure && |
al@15275 | 37 make && |
al@15275 | 38 make install |
al@15212 | 39 } |
al@15212 | 40 |
al@15212 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@15212 | 42 genpkg_rules() |
al@15212 | 43 { |
al@15212 | 44 cp -a $install/* $fs |
al@15275 | 45 rm -rf $fs/usr/share/icons $fs/usr/share/locale $fs/usr/share/man |
al@15212 | 46 } |