wok-current view qoauth/receipt @ rev 25376

updated tzdata (2019c -> 2022a)
author Hans-G?nter Theisgen
date Sat Jul 30 10:43:02 2022 +0100 (2022-07-30)
parents 5ea0ce1cecc0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="qoauth"
4 VERSION="2.0.0"
5 CATEGORY="development"
6 SHORT_DESC="OAuth support for Qt applications."
7 MAINTAINER="ben@seawolfsanctuary.com"
8 LICENSE="LGPL3"
9 WEB_SITE="https://github.com/ayoy/qoauth"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
14 DEPENDS="glibc-locale libQt3Support libQtClucene libQtCore libQtDBus libQtDesigner
15 libQtGui libQtHelp libQtNetwork libQtOpenGL libQtScript libQtSql libQtSvg
16 libQtWebkit libQtXml"
17 BUILD_DEPENDS="dbus-dev qca-dev qmake Qt4-dev slitaz-toolchain xorg-libX11-dev"
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/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 # echo -n "Linking..."
29 # ln -s $src-src $src
30 # status
32 qmake PREFIX="/usr"
33 # chmod +x configure
34 # ./configure \
35 # --prefix=/usr
37 patch -u <<ENDOFPATCH
38 --- Makefile
39 +++ Makefile
40 @@ -28,2 +28,1 @@
41 - sub-src \\
42 - sub-tests
43 + sub-src
44 ENDOFPATCH
46 status
48 patch -u <<ENDOFPATCH
49 --- Makefile
50 +++ Makefile
51 @@ -24,8 +24,7 @@
52 MOVE = mv -f
53 CHK_DIR_EXISTS= test -d
54 MKDIR = mkdir -p
55 -SUBTARGETS = \\
56 - sub-src
57 +SUBTARGETS = sub-src
59 src/\$(MAKEFILE):
60 @\$(CHK_DIR_EXISTS) src/ || \$(MKDIR) src/
61 @@ -140,16 +139,16 @@
62 qmake: qmake_all FORCE
63 @\$(QMAKE) -unix PREFIX=/usr -o Makefile qoauth.pro
65 -qmake_all: sub-src-qmake_all sub-tests-qmake_all FORCE
66 +qmake_all: sub-src-qmake_all FORCE
68 -make_default: sub-src-make_default-ordered sub-tests-make_default-ordered FORCE
69 -make_first: sub-src-make_first-ordered sub-tests-make_first-ordered FORCE
70 -all: sub-src-all-ordered sub-tests-all-ordered FORCE
71 -clean: sub-src-clean-ordered sub-tests-clean-ordered FORCE
72 -distclean: sub-src-distclean-ordered sub-tests-distclean-ordered FORCE
73 +make_default: sub-src-make_default-ordered FORCE
74 +make_first: sub-src-make_first-ordered FORCE
75 +all: sub-src-all-ordered FORCE
76 +clean: sub-src-clean-ordered FORCE
77 +distclean: sub-src-distclean-ordered FORCE
78 -\$(DEL_FILE) Makefile
79 -install_subtargets: sub-src-install_subtargets-ordered sub-tests-install_subtargets-ordered FORCE
80 -uninstall_subtargets: sub-src-uninstall_subtargets-ordered sub-tests-uninstall_subtargets-ordered FORCE
81 +install_subtargets: sub-src-install_subtargets-ordered FORCE
82 +uninstall_subtargets: sub-src-uninstall_subtargets-ordered FORCE
84 check: sub-tests
85 ( cd tests/ut_interface && ./ut_interface ) && ( cd tests/ft_interface && ./ft_interface )
86 ENDOFPATCH
88 status
90 if [ -f /usr/include/QtOAuth ] || [ -d /usr/include/QtOAuth ]
91 then
92 echo -n "Removing QtOAuth placeholder... "
93 rm -rf /usr/include/QtOAuth/
94 status && echo
95 fi
97 make $MAKEFLAGS &&
98 make DESTDIR=$DESTDIR install
99 }
101 # Rules to gen a SliTaz package suitable for Tazpkg.
102 genpkg_rules()
103 {
104 mkdir -p $fs/usr
106 for DIRECTORY in lib include
107 do
108 cp -a $src/$DIRECTORY $fs/usr
109 done
110 cp $src/src/*.h $fs/usr/include
112 mv $fs/usr/include/QtOAuth $fs/usr/include/QtOAuth.bak
113 mkdir $fs/usr/include/QtOAuth/
114 mv $fs/usr/include/interface.h $fs/usr/include/QtOAuth/interface.h
115 cp $fs/usr/include/QtOAuth/interface.h \
116 $fs/usr/include/interface.h
117 mv $fs/usr/include/QtOAuth.bak $fs/usr/include/QtOAuth/QtOAuth
119 mkdir -p $fs/usr/share/qt/mkspecs/features &&
120 cp $src/oauth.prf $fs/usr/share/qt/mkspecs/features/oauth.prf
122 # Copy .desktop file:
123 # cp -a $WOK/$PACKAGE/stuff/* $fs/usr
124 }
126 pre_install()
127 {
128 if [ -f /usr/include/QtOAuth ] || [ -d /usr/include/QtOAuth ]
129 then
130 echo -n "Removing QtOAuth placeholder... "
131 rm -rf /usr/include/QtOAuth/
132 status && echo
133 fi
134 }