New package: qoauth-qt5-2.0.0

This commit is contained in:
Jürgen Buchmüller 2018-02-24 18:51:01 +01:00
parent 14d5707d95
commit 13a44b81e9
3 changed files with 41 additions and 0 deletions

View file

@ -1321,6 +1321,7 @@ libkworkspace.so.4 kde-workspace-4.10.4_1
libprocessui.so.4 kde-workspace-4.10.4_1
libkgapi2.so.2 libkgapi-2.0.1_1
libqoauth.so.1 qoauth-1.0.1_1
libqoauth.so.2 qoauth-qt5-2.0.0_1
libIrrlicht.so.1.8 irrlicht-1.8_1
libsnappy.so.1 snappy-1.1.0_1
libkonq.so.5 kde-baseapps-4.10.4_1

1
srcpkgs/qoauth-qt5-devel Symbolic link
View file

@ -0,0 +1 @@
qoauth-qt5

View file

@ -0,0 +1,39 @@
# Template file for 'qoauth-qt5'
pkgname=qoauth-qt5
version=2.0.0
revision=1
_gitrev=4b01e9fa5198f9e175f5e8e19868b32101f22b98
wrksrc="qoauth-${_gitrev}"
build_style=qmake
hostmakedepends="qt5-qmake"
makedepends="qt5-devel qca-qt5-devel"
short_desc="Support with OAuth-powered network services"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-2.1"
homepage="http://github.com/ayoy/qoauth"
distfiles="https://github.com/ayoy/qoauth/archive/${_gitrev}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=9eef13bd6095d68ba7902514b300c23cb81a69a090ba82ced9d7cdf76a65d8e4
CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/Qca-qt5/QtCrypto"
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-devel"
fi
pre_configure() {
sed -i src/src.pro tests/*/*.pro \
-e 's|lib64|lib|' \
-e '/^QT -=/a LIBS+=-L${XBPS_CROSS_BASE}/usr/lib -lqca-qt5' \
-e '/^QT -=/a QMAKE_LFLAGS+=-L${XBPS_CROSS_BASE}/usr/lib -lqca-qt5'
}
qoauth-qt5-devel_package() {
depends="qca-qt5-devel ${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove "usr/lib/*.prl"
vmove usr/lib/qt5/mkspecs
}
}