wok view juffed/receipt @ rev 25609
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 20 14:03:05 2023 +0000 (16 months ago) |
parents | b569b85b0fb9 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="juffed"
4 VERSION="0.10"
5 CATEGORY="editors"
6 SHORT_DESC="Qt4 text & code editor"
7 MAINTAINER="psychomaniak@xakep.ru"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/Mezomish/juffed"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 # COMMIT="58e2c637f1"
12 # VERSION="${COMMIT:0:4}git"
13 # WGET_URL="https://github.com/Mezomish/$PACKAGE/archive/$COMMIT.tar.gz"
14 WGET_URL="$SF_MIRROR/$PACKAGE/$PACKAGE-$VERSION-1054.tar.bz2"
15 TAGS="text-editor"
17 DEPENDS="libQtGui libQtDBus libQtNetwork libqscintilla"
18 BUILD_DEPENDS="Qt4-dev cmake qmake libqscintilla-dev"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://github.com/Mezomish/$PACKAGE/tags 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 #sed -i 's/ ON/ OFF/g' $src/plugins/CMakeLists.txt
31 cd $src && cmake \
32 -DCMAKE_BUILD_TYPE=release \
33 -DCMAKE_INSTALL_PREFIX=/usr . &&
34 make && make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cp -a $install/* $fs
41 }