55 lines
1.5 KiB
Text
55 lines
1.5 KiB
Text
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=plasma-camera
|
|
pkgver=1.0_git20210328
|
|
pkgrel=0
|
|
_commit="78c2e161c31b07be15f67c53bb556c3100a956b6"
|
|
pkgdesc="Camera application for Plasma Mobile"
|
|
arch="all !armhf" # armhf: qt5-qtdeclarative
|
|
url="https://invent.kde.org/plasma-mobile/plasma-camera"
|
|
license="GPL-3.0-or-later AND BSD-3-Clause"
|
|
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
|
|
"
|
|
source="https://invent.kde.org/plasma-mobile/plasma-camera/-/archive/$_commit/plasma-camera-$_commit.tar.gz"
|
|
builddir="$srcdir/$pkgname-$_commit"
|
|
|
|
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
|
|
}
|
|
|
|
build() {
|
|
cmake -B build \
|
|
-DCMAKE_BUILD_TYPE=None \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
cd build
|
|
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --build build --target install
|
|
}
|
|
sha512sums="6b2c187be65f75481e425a3b499bab01034930ee81d15eb2eef99abaa5bef8e4e911c13ee454737d940413729f1c8a69ba5395ce0e672e20f7708fd8b3c7c43f plasma-camera-78c2e161c31b07be15f67c53bb556c3100a956b6.tar.gz"
|