36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# 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 qt5-host-tools"
|
|
makedepends="qt5-devel qca-qt5-devel"
|
|
short_desc="Support with OAuth-powered network services"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
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"
|
|
|
|
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
|
|
}
|
|
}
|