wok annotate ponyprog-qt/receipt @ rev 24586

updated gawk (5.0.1 -> 5.1.1)
author Hans-G?nter Theisgen
date Mon Feb 28 09:01:30 2022 +0100 (2022-02-28)
parents 3801a162aec8
children 0262035dc1e7
rev   line source
psychomaniak@20111 1 # SliTaz package receipt.
psychomaniak@20111 2
psychomaniak@20111 3 PACKAGE="ponyprog-qt"
psychomaniak@20111 4 VERSION="3.0.0"
psychomaniak@20111 5 CATEGORY="system-tools"
psychomaniak@20111 6 SHORT_DESC="PonyProg is the universal programmer for many serial devices."
psychomaniak@20111 7 MAINTAINER="psychomaniak@xakep.ru"
psychomaniak@20111 8 LICENSE="GPL"
psychomaniak@20111 9 WEB_SITE="http://www.lancos.com/prog.html"
psychomaniak@20111 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
psychomaniak@20111 11 WGET_URL="https://github.com/lancos/ponyprog/archive/v${VERSION}.tar.gz"
psychomaniak@20111 12
psychomaniak@20113 13 EXTRA_SOURCE_FILES="qhexedit2-5f3ca79.tar.gz"
psychomaniak@20113 14 WGET_URL2="https://github.com/lancos/qhexedit2/archive/5f3ca79.tar.gz"
psychomaniak@20113 15
psychomaniak@20113 16 DEPENDS="libQtGui"
psychomaniak@20113 17 BUILD_DEPENDS="Qt4-dev qmake cmake"
psychomaniak@20111 18
pascal@24055 19 current_version()
pascal@24055 20 {
pascal@24055 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 23 }
pascal@24055 24
psychomaniak@20111 25 # Rules to configure and make the package.
psychomaniak@20111 26 compile_rules()
psychomaniak@20111 27 {
psychomaniak@20113 28 [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] || \
psychomaniak@20113 29 wget -O $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES $WGET_URL2
psychomaniak@20113 30 busybox tar -xf $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES
psychomaniak@20113 31 rm -rf qhexedit2
psychomaniak@20113 32 mv -f qhexedit2-* qhexedit2
psychomaniak@20114 33 sed 's|c++11|c++0x|g' -i ponyprog.pro CMakeLists.txt
psychomaniak@20112 34
psychomaniak@20113 35 qmake && make && make DESTDIR=$DESTDIR install
psychomaniak@20111 36 }
psychomaniak@20111 37
psychomaniak@20111 38 # Rules to gen a SliTaz package suitable for Tazpkg.
psychomaniak@20111 39 genpkg_rules()
psychomaniak@20111 40 {
psychomaniak@20113 41 mkdir -p $fs/usr/bin $fs/usr/share/applications
psychomaniak@20113 42 cp -a $src/build/ponyprog $fs/usr/bin
psychomaniak@20113 43 cp -a $src/desktop/*.desktop $fs/usr/share/applications
pascal@20115 44 chown -R root:root $fs
psychomaniak@20111 45 }