wok-6.x annotate ponyprog-qt/receipt @ rev 20113

netsurf-sdl, qedit, mupdf : add desktop files
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Thu Oct 12 11:08:12 2017 +0200 (2017-10-12)
parents 9e45f21b3946
children 1d426143c715
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
psychomaniak@20111 19 # Rules to configure and make the package.
psychomaniak@20111 20 compile_rules()
psychomaniak@20111 21 {
psychomaniak@20113 22 [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] || \
psychomaniak@20113 23 wget -O $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES $WGET_URL2
psychomaniak@20113 24 busybox tar -xf $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES
psychomaniak@20113 25 rm -rf qhexedit2
psychomaniak@20113 26 mv -f qhexedit2-* qhexedit2
psychomaniak@20113 27 sed 's|c++11|c++0x|g' -i ponyprog.pro Makefile CMakeLists.txt
psychomaniak@20112 28
psychomaniak@20113 29 qmake && make && make DESTDIR=$DESTDIR install
psychomaniak@20111 30 }
psychomaniak@20111 31
psychomaniak@20111 32 # Rules to gen a SliTaz package suitable for Tazpkg.
psychomaniak@20111 33 genpkg_rules()
psychomaniak@20111 34 {
psychomaniak@20113 35 mkdir -p $fs/usr/bin $fs/usr/share/applications
psychomaniak@20113 36 cp -a $src/build/ponyprog $fs/usr/bin
psychomaniak@20113 37 cp -a $src/desktop/*.desktop $fs/usr/share/applications
psychomaniak@20113 38 chown -r root:root $fs
psychomaniak@20111 39 }