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
|
2019-12-06 17:39:23 +00:00
|
|
|
pkgver=0_git20191120
|
2017-11-26 17:08:10 +00:00
|
|
|
pkgrel=0
|
2019-12-06 17:39:23 +00:00
|
|
|
_commit="2fa0b0e45e0dd4b7d4cb29dfbc20e6a76237945b"
|
2017-11-26 17:08:10 +00:00
|
|
|
pkgdesc="Simple camera application for mobile devices"
|
|
|
|
arch="all"
|
|
|
|
url="https://community.kde.org/Plasma/Mobile"
|
2019-07-17 17:19:54 +00:00
|
|
|
license="GPL-3.0-or-later AND BSD-3-Clause"
|
|
|
|
depends="kirigami2 qt5-qtquickcontrols2 qt5-qtmultimedia"
|
2019-05-21 15:09:25 +00:00
|
|
|
makedepends="extra-cmake-modules qt5-qtbase-dev kpackage-dev kcoreaddons-dev qt5-qtsvg-dev qt5-qtquickcontrols2-dev kirigami2-dev"
|
2019-12-06 17:39:23 +00:00
|
|
|
source="$pkgname-$_commit.tar.gz::https://invent.kde.org/kde/plasma-camera/-/archive/$_commit/plasma-camera-$_commit.tar.gz"
|
2019-07-17 17:19:54 +00:00
|
|
|
builddir="$srcdir/$pkgname-$_commit"
|
2017-11-26 17:08:10 +00:00
|
|
|
|
|
|
|
prepare() {
|
2018-12-29 20:27:48 +00:00
|
|
|
default_prepare
|
|
|
|
|
2019-07-17 17:19:54 +00:00
|
|
|
mkdir "$builddir"/build
|
2017-11-26 17:08:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2019-07-17 17:19:54 +00:00
|
|
|
cd "$builddir"/build
|
|
|
|
cmake "$builddir" \
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
2017-11-26 17:08:10 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2019-07-17 17:19:54 +00:00
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib
|
2017-11-26 17:08:10 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2019-07-17 17:19:54 +00:00
|
|
|
cd "$builddir"/build
|
2017-11-26 17:08:10 +00:00
|
|
|
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2019-07-17 17:19:54 +00:00
|
|
|
cd "$builddir"/build
|
|
|
|
DESTDIR="$pkgdir" make install
|
2017-11-26 17:08:10 +00:00
|
|
|
}
|
2019-12-06 17:39:23 +00:00
|
|
|
sha512sums="a746a5155e2aeef5c40a06ffa9f885ebaa50e8a07714272a644e5e9fb78e3875fe5f5026207cda33f5c97bb496982b68fb28abdab1376f1ca4f47012284dbe4c plasma-camera-2fa0b0e45e0dd4b7d4cb29dfbc20e6a76237945b.tar.gz"
|