pmaports/unity8/libusermetrics/APKBUILD
Luca Weiss 624c046cd4
main/*, unity8/*: update various unity8 packages (!221)
Everything seems to be fine in QEMU.

[skip ci]: too many packages have changed
2019-02-27 19:10:30 +01:00

47 lines
1.3 KiB
Text

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=libusermetrics
pkgver=0_git20190101
_commit="ed7dd5d3fb5b01c345f942561008c4ca86568b34"
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"
source="$pkgname-$_commit.tar.gz::https://github.com/ubports/$pkgname/archive/$_commit.tar.gz"
subpackages="$pkgname-dev $pkgname-lang"
builddir="$srcdir/$pkgname-$_commit"
prepare() {
default_prepare
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
}
sha512sums="39a61b1afd4e91eacd1d01322a0c505dbc14b557bd802b41d050fd2e93280ebc77bb2c66608496f06c970324d84bd215d8f8de9cbdc421d6061443a9d2554dc2 libusermetrics-ed7dd5d3fb5b01c345f942561008c4ca86568b34.tar.gz"