2018-09-02 23:29:38 +00:00
|
|
|
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
|
|
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
|
|
|
pkgname=unity-api
|
2019-02-14 19:59:01 +00:00
|
|
|
pkgver=0_git20190211
|
|
|
|
_commit="3361ed583f7545684965ac8b0094cd88a5cf26cd"
|
2018-09-02 23:29:38 +00:00
|
|
|
pkgrel=0
|
|
|
|
pkgdesc="API for Unity shell integration"
|
|
|
|
url="https://github.com/ubports/unity-api"
|
|
|
|
arch="x86_64"
|
|
|
|
license="LGPL-3.0"
|
|
|
|
depends=""
|
|
|
|
depends_dev=""
|
|
|
|
makedepends="$depends_dev cmake cmake-extras qt5-qtdeclarative-dev libqtdbustest gtest-dev gmock"
|
|
|
|
source="$pkgname-$_commit.tar.gz::https://github.com/ubports/$pkgname/archive/$_commit.tar.gz
|
2019-02-14 19:59:01 +00:00
|
|
|
qmltestrunner.patch"
|
2018-09-02 23:29:38 +00:00
|
|
|
subpackages="$pkgname-dev"
|
|
|
|
builddir="$srcdir/$pkgname-$_commit"
|
|
|
|
options="!check" # 88% tests passed, 3 tests failed out of 26
|
|
|
|
|
|
|
|
build() {
|
|
|
|
mkdir "$builddir"/build
|
|
|
|
cd "$builddir"/build
|
|
|
|
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib ..
|
|
|
|
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="fe69fdfb958a885a4a7472868750d7eb23c29d77a1c32914f47f7ffc9adfd62e6f354e6d48498890eb7f5a6ad42fdec3c0bcae690ca59f06f634db3574e72aee unity-api-3361ed583f7545684965ac8b0094cd88a5cf26cd.tar.gz
|
|
|
|
8695998cb0451943ff08f00be52766d27c439184b1e8531a563cffe4bf4251dea52d5bc3493d797f4f6007f13130930c6b0cfb2c04b9dc54e6891e17c2978fb9 qmltestrunner.patch"
|