void-packages/srcpkgs/qoauth/template

32 lines
803 B
Bash

# Template file for 'qoauth'
pkgname=qoauth
version=1.0.1
revision=4
build_style=qmake
makedepends="qt-devel qca-devel"
short_desc="Support with OAuth-powered network services"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2.1"
homepage="http://github.com/ayoy/qoauth"
distfiles="https://github.com/ayoy/qoauth/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=10212e0d5b735b98faef644b8eee92b8217e6e9222987c649920e0c4ec0b1e8c
CXXFLAGS="-I/usr/include/QtCrypto"
pre_configure() {
sed -i src/src.pro \
-e 's|lib64|lib|' \
-e '/QT -=/a LIBS += -lqca'
}
qoauth-devel_package() {
depends="qca-devel ${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove "usr/lib/*.prl"
vmove usr/share/qt
}
}