wok view ponyprog-qt/receipt @ rev 25601

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 18:06:38 2023 +0000 (10 months ago)
parents 5ea0ce1cecc0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="ponyprog-qt"
4 VERSION="3.0.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="PonyProg is the universal programmer for many serial devices."
7 MAINTAINER="psychomaniak@xakep.ru"
8 LICENSE="GPL"
9 WEB_SITE="http://www.lancos.com/prog.html"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="https://github.com/lancos/ponyprog/archive/v${VERSION}.tar.gz"
13 EXTRA_SOURCE_FILES="qhexedit2-5f3ca79.tar.gz"
14 WGET_URL2="https://github.com/lancos/qhexedit2/archive/5f3ca79.tar.gz"
16 DEPENDS="libQtGui"
17 BUILD_DEPENDS="Qt4-dev qmake cmake"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
23 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] || \
30 wget -O $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES $WGET_URL2
31 busybox tar -xf $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES
32 rm -rf qhexedit2
33 mv -f qhexedit2-* qhexedit2
34 sed 's|c++11|c++0x|g' -i ponyprog.pro CMakeLists.txt
36 qmake && make && make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/bin $fs/usr/share/applications
43 cp -a $src/build/ponyprog $fs/usr/bin
44 cp -a $src/desktop/*.desktop $fs/usr/share/applications
45 chown -R root:root $fs
46 }