wok-6.x annotate qoauth/receipt @ rev 24142

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