2018-12-29 20:27:48 +00:00
|
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
2017-11-26 17:08:10 +00:00
|
|
|
pkgname=plasma-camera
|
2020-09-04 19:53:51 +00:00
|
|
|
pkgver=1.0_git20200901
|
2017-11-26 17:08:10 +00:00
|
|
|
pkgrel=0
|
2020-09-04 19:53:51 +00:00
|
|
|
_commit="5f6f37b04f38bdf71dfea2f5995023d12584d0af"
|
2020-06-18 09:24:30 +00:00
|
|
|
pkgdesc="Camera application for Plasma Mobile"
|
2020-09-07 11:49:24 +00:00
|
|
|
arch="all !armhf" # armhf: qt5-qtdeclarative
|
2020-06-18 09:24:30 +00:00
|
|
|
url="https://invent.kde.org/plasma-mobile/plasma-camera"
|
2019-07-17 17:19:54 +00:00
|
|
|
license="GPL-3.0-or-later AND BSD-3-Clause"
|
2020-09-04 19:53:51 +00:00
|
|
|
depends="
|
|
|
|
gst-plugins-bad
|
|
|
|
gst-plugins-good
|
|
|
|
kirigami2
|
|
|
|
qt5-qtmultimedia
|
|
|
|
"
|
|
|
|
makedepends="
|
|
|
|
extra-cmake-modules
|
|
|
|
kcoreaddons-dev
|
|
|
|
ki18n-dev
|
|
|
|
kirigami2-dev
|
|
|
|
qt5-qtbase-dev
|
|
|
|
qt5-qtdeclarative-dev
|
|
|
|
qt5-qtquickcontrols2-dev
|
|
|
|
qt5-qtsvg-dev
|
|
|
|
"
|
2020-06-18 09:24:30 +00:00
|
|
|
source="https://invent.kde.org/plasma-mobile/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
|
|
|
|
2020-09-11 13:40:04 +00:00
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
|
|
|
|
# qmlplugindump fails for armv7+qemu (pmb#1970). This is purely for
|
|
|
|
# packager knowledge and doesn't affect runtime, so we can disable it.
|
|
|
|
if [ "$CARCH" = "armv7" ]; then
|
|
|
|
sed -i "s/ecm_find_qmlmodule/# ecm_find_qmlmodule/g" CMakeLists.txt
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2017-11-26 17:08:10 +00:00
|
|
|
build() {
|
2020-03-09 10:35:35 +00:00
|
|
|
cmake -B build \
|
|
|
|
-DCMAKE_BUILD_TYPE=None \
|
2017-11-26 17:08:10 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2019-07-17 17:19:54 +00:00
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib
|
2020-06-18 09:24:30 +00:00
|
|
|
cmake --build build
|
2017-11-26 17:08:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2020-03-09 10:35:35 +00:00
|
|
|
cd build
|
2017-11-26 17:08:10 +00:00
|
|
|
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-06-18 09:24:30 +00:00
|
|
|
DESTDIR="$pkgdir" cmake --build build --target install
|
2017-11-26 17:08:10 +00:00
|
|
|
}
|
2020-09-04 19:53:51 +00:00
|
|
|
sha512sums="a5beb9ceeb23e44e81e3ffc209850907856cdfaa94b73b91bd9f8d9a4905e5e388cbfb7d5e76603561b8b2e2e9b0aa004c3c4f35166ba18054cb641b69837fb5 plasma-camera-5f6f37b04f38bdf71dfea2f5995023d12584d0af.tar.gz"
|