wok-current view qlipper/receipt @ rev 24396
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 08 12:15:27 2022 +0000 (2022-02-08) |
parents | 6135577f4d08 |
children | 0aa534391a15 |
line source
1 # SliTaz package receipt.
3 PACKAGE="qlipper"
4 VERSION="2.0.2"
5 CATEGORY="utilities"
6 SHORT_DESC="Clipboard history tool."
7 MAINTAINER="psychomaniak@xakep.ru"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/pvanek/qlipper"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="$WEB_SITE/files/$TARBALL"
13 DEPENDS="libQtGui libQtDBus libQtNetwork"
14 BUILD_DEPENDS="Qt4-dev cmake qmake"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WEB_SITE/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src && sed -i 's/ ON/ OFF/g' CMakeLists.txt
27 cmake \
28 -DCMAKE_BUILD_TYPE=release \
29 -DUSE_SYSTEM_QXT=0 \
30 -DCMAKE_INSTALL_PREFIX=/usr . &&
31 make && make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cp -a $install/* $fs
38 }