wok-next view qoauth/receipt @ rev 21238

updated codeblocks (10.05 -> 17.12)
author Hans-G?nter Theisgen
date Wed Dec 04 17:03:37 2019 +0100 (2019-12-04)
parents 5ffe59e2de3a
children
line source
1 # SliTaz package receipt.
3 PACKAGE="qoauth"
4 VERSION="1.0"
5 CATEGORY="development"
6 SHORT_DESC="OAuth support for Qt applications"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="LGPL3"
9 WEB_SITE="https://github.com/ayoy/qoauth"
11 TARBALL="$PACKAGE-$VERSION-src.tar.bz2"
12 WGET_URL="http://files.ayoy.net/$PACKAGE/release/$VERSION/src/$TARBALL"
14 BUILD_DEPENDS="qmake qca-dev libx11-dev dbus-dev Qt4-dev slitaz-toolchain"
16 compile_rules() {
17 # echo -n "Linking..."
18 # ln -s $src-src $src
19 # status
21 qmake PREFIX="/usr"
22 # chmod +x configure
23 # ./configure \
24 # --prefix=/usr
26 patch -u <<ENDOFPATCH
27 --- Makefile
28 +++ Makefile
29 @@ -28,2 +28,1 @@
30 - sub-src \\
31 - sub-tests
32 + sub-src
33 ENDOFPATCH
35 status
37 patch -u <<ENDOFPATCH
38 --- Makefile
39 +++ Makefile
40 @@ -24,8 +24,7 @@
41 MOVE = mv -f
42 CHK_DIR_EXISTS= test -d
43 MKDIR = mkdir -p
44 -SUBTARGETS = \\
45 - sub-src
46 +SUBTARGETS = sub-src
48 src/\$(MAKEFILE):
49 @\$(CHK_DIR_EXISTS) src/ || \$(MKDIR) src/
50 @@ -140,16 +139,16 @@
51 qmake: qmake_all FORCE
52 @\$(QMAKE) -unix PREFIX=/usr -o Makefile qoauth.pro
54 -qmake_all: sub-src-qmake_all sub-tests-qmake_all FORCE
55 +qmake_all: sub-src-qmake_all FORCE
57 -make_default: sub-src-make_default-ordered sub-tests-make_default-ordered FORCE
58 -make_first: sub-src-make_first-ordered sub-tests-make_first-ordered FORCE
59 -all: sub-src-all-ordered sub-tests-all-ordered FORCE
60 -clean: sub-src-clean-ordered sub-tests-clean-ordered FORCE
61 -distclean: sub-src-distclean-ordered sub-tests-distclean-ordered FORCE
62 +make_default: sub-src-make_default-ordered FORCE
63 +make_first: sub-src-make_first-ordered FORCE
64 +all: sub-src-all-ordered FORCE
65 +clean: sub-src-clean-ordered FORCE
66 +distclean: sub-src-distclean-ordered FORCE
67 -\$(DEL_FILE) Makefile
68 -install_subtargets: sub-src-install_subtargets-ordered sub-tests-install_subtargets-ordered FORCE
69 -uninstall_subtargets: sub-src-uninstall_subtargets-ordered sub-tests-uninstall_subtargets-ordered FORCE
70 +install_subtargets: sub-src-install_subtargets-ordered FORCE
71 +uninstall_subtargets: sub-src-uninstall_subtargets-ordered FORCE
73 check: sub-tests
74 ( cd tests/ut_interface && ./ut_interface ) && ( cd tests/ft_interface && ./ft_interface )
75 ENDOFPATCH
77 status
79 if [ -f /usr/include/QtOAuth ] || [ -d /usr/include/QtOAuth ]; then
80 echo -n "Removing QtOAuth placeholder... "
81 rm -rf /usr/include/QtOAuth/
82 status && echo
83 fi
85 make $MAKEFLAGS &&
86 make DESTDIR=$install install
87 }
89 genpkg_rules() {
90 mkdir -p $fs/usr
91 for DIRECTORY in lib include; do
92 cp -a $src/$DIRECTORY $fs/usr
93 done
94 cp $src/src/*.h $fs/usr/include
96 mv $fs/usr/include/QtOAuth $fs/usr/include/QtOAuth.bak
97 mkdir $fs/usr/include/QtOAuth/
98 mv $fs/usr/include/interface.h $fs/usr/include/QtOAuth/interface.h
99 cp $fs/usr/include/QtOAuth/interface.h $fs/usr/include/interface.h
100 mv $fs/usr/include/QtOAuth.bak $fs/usr/include/QtOAuth/QtOAuth
102 mkdir -p $fs/usr/share/qt/mkspecs/features &&
103 cp $src/oauth.prf $fs/usr/share/qt/mkspecs/features/oauth.prf
105 # Copy .desktop file:
106 # cp -a $WOK/$PACKAGE/stuff/* $fs/usr
107 DEPENDS="glibc-locale libQtCore libQtGui libQtNetwork libQtSvg libQtXml \
108 libQtDesigner libQtScript libQt3Support libQtClucene libQtDBus libQtHelp \
109 libQtOpenGL libQtSql libQtWebkit"
110 }
112 pre_install() {
113 if [ -f /usr/include/QtOAuth ] || [ -d /usr/include/QtOAuth ]; then
114 echo -n "Removing QtOAuth placeholder... "
115 rm -rf /usr/include/QtOAuth/
116 status && echo
117 fi
118 }