2018-09-02 23:29:38 +00:00
|
|
|
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
|
|
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
|
|
|
pkgname=libusermetrics
|
2019-02-14 19:59:01 +00:00
|
|
|
pkgver=0_git20190101
|
|
|
|
_commit="ed7dd5d3fb5b01c345f942561008c4ca86568b34"
|
2018-09-02 23:29:38 +00:00
|
|
|
pkgrel=0
|
|
|
|
pkgdesc='Library for exporting anonymous metrics about users'
|
|
|
|
arch="x86_64"
|
|
|
|
url="https://unity8.io"
|
|
|
|
license="GPL-3.0 LGPL-3.0 LGPL-2.1"
|
|
|
|
depends=""
|
|
|
|
depends_dev="qt5-qtxmlpatterns-dev libapparmor-dev gsettings-qt-dev qt5-qtdeclarative-dev click-dev qdjango-dev"
|
|
|
|
makedepends="$depends_dev cmake-extras qt5-qtbase-dev libapparmor libqtdbustest intltool"
|
2019-02-14 19:59:01 +00:00
|
|
|
source="$pkgname-$_commit.tar.gz::https://github.com/ubports/$pkgname/archive/$_commit.tar.gz"
|
2018-09-02 23:29:38 +00:00
|
|
|
subpackages="$pkgname-dev $pkgname-lang"
|
|
|
|
builddir="$srcdir/$pkgname-$_commit"
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2019-02-14 19:59:01 +00:00
|
|
|
|
2018-09-02 23:29:38 +00:00
|
|
|
mkdir "$builddir"/build
|
|
|
|
|
|
|
|
# Don't build tests
|
|
|
|
truncate -s 0 "$builddir"/tests/CMakeLists.txt
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$builddir"/build
|
|
|
|
cmake \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-DWerror=OFF ..
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd "$builddir"/build
|
|
|
|
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$builddir"/build
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
}
|
|
|
|
|
2019-02-14 19:59:01 +00:00
|
|
|
sha512sums="39a61b1afd4e91eacd1d01322a0c505dbc14b557bd802b41d050fd2e93280ebc77bb2c66608496f06c970324d84bd215d8f8de9cbdc421d6061443a9d2554dc2 libusermetrics-ed7dd5d3fb5b01c345f942561008c4ca86568b34.tar.gz"
|