wok annotate qtwitter/receipt @ rev 25102

Use archive.org for some broken wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 21 16:00:20 2022 +0000 (2022-06-21)
parents b9659e3c2111
children
rev   line source
pascal@11227 1 # SliTaz package receipt.
pascal@11227 2
pascal@11227 3 PACKAGE="qtwitter"
pascal@11227 4 VERSION="0.10.0"
pascal@11227 5 CATEGORY="network"
pascal@11227 6 SHORT_DESC="A Qt-based, cross-network microblogging client."
pascal@11227 7 MAINTAINER="ben@seawolfsanctuary.com"
pascal@14997 8 LICENSE="LGPL3"
pankso@12280 9 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
pascal@20689 10 WEB_SITE="https://web.archive.org/web/20130113073128/http://blog.ayoy.net/qtwitter"
pascal@25102 11 WGET_URL="https://web.archive.org/web/20150805105045if_/http://files.ayoy.net/$PACKAGE/release/$VERSION/src/$TARBALL"
pankso@12280 12
pascal@11227 13 DEPENDS="glibc-locale libQtCore libQtGui libQtNetwork libQtSvg libQtXml \
pascal@11227 14 libQtDesigner libQtScript libQt3Support libQtClucene libQtDBus libQtHelp \
pankso@12280 15 libQtOpenGL libQtSql libQtWebkit qoauth qca"
pankso@12282 16 BUILD_DEPENDS="qmake xorg-dev dbus-dev Qt4-dev qoauth qca-dev"
pascal@11227 17
pascal@24545 18 # What is the latest version available today?
pascal@24545 19 current_version()
pascal@24545 20 {
pascal@24545 21 wget -O - https://github.com/ayoy/qtwitter/tags 2>/dev/null | \
pascal@24545 22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24545 23 }
pascal@24545 24
pascal@11227 25 # Rules to configure and make the package.
pascal@11227 26 compile_rules()
pascal@11227 27 {
pascal@11227 28 cd $src
pascal@12969 29 sed -i 's|-Wl,-rpath|-Wl,--copy-dt-needed-entries -lX11 &|' \
pascal@12969 30 qtwitter-app/qtwitter-app.pro
pascal@11227 31 qmake PREFIX="/usr" && \
pascal@11227 32 make -j4 && make DESTDIR=$DESTDIR install
pascal@11227 33 }
pascal@11227 34
pascal@11227 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11227 36 genpkg_rules()
pascal@11227 37 {
pankso@12280 38 mkdir -p $fs/usr/lib $fs/usr/bin \
pankso@12280 39 $fs/usr/share/applications $fs/usr/share/pixmaps
pascal@11227 40
pascal@11227 41 # Binaries
pascal@11227 42 cp -a $src/build/qtwitter $fs/usr/bin
pascal@11227 43 # Libraries
pankso@12280 44 cp -a $src/build/lib* $fs/usr/lib
pascal@11227 45 # Copy .desktop file:
pankso@12280 46 cp -a $src/qtwitter-app/x11/*.desktop $fs/usr/share/applications
pankso@12280 47 cp -a $src/qtwitter-app/x11/icons/32x32/*.png $fs/usr/share/pixmaps
pascal@11227 48 }