wok view copyq/receipt @ rev 25598

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 12:03:07 2023 +0000 (16 months ago)
parents 5ea0ce1cecc0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="copyq"
4 VERSION="2.4.2"
5 CATEGORY="utilities"
6 SHORT_DESC="Clipboard Manager with Advanced Features"
7 WEB_SITE="http://hluk.github.io/CopyQ/"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 MAINTAINER="psychomaniak@xakep.ru"
11 WGET_URL="https://github.com/hluk/CopyQ/archive/v$VERSION.tar.gz"
13 DEPENDS="libQtGui libQtNetwork libQtScript libQtSvg librsvg libQtXml libQtWebkit"
14 BUILD_DEPENDS="wget Qt4-dev cmake qmake"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cat > p.diff <<EOT
27 --- o.cpp
28 +++ configurationmanager.cpp
29 @@ -54 +54 @@
30 -# define DEFAULT_EDITOR "gedit %1"
31 +# define DEFAULT_EDITOR "editor %1"
32 @@ -468 +468 @@
33 - bind("check_selection", ui->checkBoxSel, false);
34 + bind("check_selection", ui->checkBoxSel, true);
35 EOT
36 patch $src/src/gui/configurationmanager.cpp p.diff
37 mkdir $src/b
38 cd $src/b && cmake -DCMAKE_INSTALL_PREFIX=/usr ..
39 make && make install
40 rm -rf $src/b
41 }
43 genpkg_rules()
44 {
45 cp -a $install/* $fs
46 }