2018-12-29 20:27:48 +00:00
|
|
|
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
2017-11-26 17:08:10 +00:00
|
|
|
pkgname=plasma-camera
|
2018-12-29 20:27:48 +00:00
|
|
|
pkgver=0_git20181118
|
2017-11-26 17:08:10 +00:00
|
|
|
pkgrel=0
|
2018-12-29 20:27:48 +00:00
|
|
|
_commit="2783a773856083a5ff4a17d3a64955662e230020"
|
2017-11-26 17:08:10 +00:00
|
|
|
pkgdesc="Simple camera application for mobile devices"
|
|
|
|
arch="all"
|
|
|
|
url="https://community.kde.org/Plasma/Mobile"
|
|
|
|
license="GPL-2.0"
|
|
|
|
depends=""
|
2018-12-29 20:27:48 +00:00
|
|
|
makedepends="extra-cmake-modules qt5-qtbase-dev kpackage-dev kcoreaddons-dev qt5-qtsvg-dev qt5-qtquickcontrols2-dev"
|
|
|
|
source="$pkgname-$_commit.tar.gz::https://invent.kde.org/kde/$pkgname/-/archive/$_commit/$pkgname-$_commit.tar.gz"
|
|
|
|
builddir="$srcdir/$pkgname-$_commit/build"
|
2017-11-26 17:08:10 +00:00
|
|
|
|
|
|
|
prepare() {
|
2018-12-29 20:27:48 +00:00
|
|
|
default_prepare
|
|
|
|
|
2017-11-26 17:08:10 +00:00
|
|
|
mkdir "$builddir"
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$builddir"
|
2018-12-29 20:27:48 +00:00
|
|
|
cmake "$builddir"/.. \
|
2017-11-26 17:08:10 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DKDE_INSTALL_LIBDIR=lib \
|
|
|
|
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd "$builddir"
|
|
|
|
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$builddir"
|
2018-12-29 20:27:48 +00:00
|
|
|
make DESTDIR="$pkgdir" install
|
2017-11-26 17:08:10 +00:00
|
|
|
}
|
2018-12-29 20:27:48 +00:00
|
|
|
sha512sums="e61f72baaef6b5243b639d39745044c715e0b869445148c16e663a81f5bebddba14539e42b0c73edb5c1e2382e98f2c210589e6103f3b73b0c1be238b8814b8c plasma-camera-2783a773856083a5ff4a17d3a64955662e230020.tar.gz"
|