wok-6.x view qtwitter/receipt @ rev 25558

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