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