wok view owncloud-client/receipt @ rev 24535

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 23 11:49:52 2022 +0000 (2022-02-23)
parents 380ffe05937a
children c85bdee1fe53
line source
1 # SliTaz package receipt.
3 PACKAGE="owncloud-client"
4 VERSION="1.0.5"
5 CATEGORY="network"
6 SHORT_DESC="The ownCloud Client, based on Mirall"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://owncloud.org/sync-clients/"
10 SOURCE="mirall"
11 TARBALL="$SOURCE-$VERSION.tar.bz2"
12 WGET_URL="http://download.owncloud.com/download/$TARBALL"
14 DEPENDS="csync libQtTest libQtNetwork libQtCore libQtXml libQtGui"
15 BUILD_DEPENDS="csync-dev Qt4-dev cmake qmake"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://github.com/owncloud/client/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 mkdir mirall-build && cd mirall-build
28 cmake -DCMAKE_INSTALL_PREFIX=/usr .. \
29 && make && make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $install/* $fs/
37 }