[arch-commits] Commit in deepin-camera/repos (2 files)

Antonio Rojas arojas at gemini.archlinux.org
Sat May 14 16:47:52 UTC 2022


    Date: Saturday, May 14, 2022 @ 16:47:51
  Author: arojas
Revision: 1205375

archrelease: copy trunk to community-staging-x86_64

Added:
  deepin-camera/repos/community-staging-x86_64/
  deepin-camera/repos/community-staging-x86_64/PKGBUILD
    (from rev 1205374, deepin-camera/trunk/PKGBUILD)

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Copied: deepin-camera/repos/community-staging-x86_64/PKGBUILD (from rev 1205374, deepin-camera/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-05-14 16:47:51 UTC (rev 1205375)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=deepin-camera
+pkgver=1.2.1
+pkgrel=3
+pkgdesc='Tool to view camera, take photo and video'
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-camera"
+license=('GPL3')
+depends=('deepin-qt5integration' 'deepin-qt-dbus-factory' 'ffmpeg' 'ffmpegthumbnailer' 'portaudio' 'pulseaudio')
+makedepends=('cmake' 'deepin-gettext-tools' 'ninja' 'qt5-tools')
+groups=('deepin-extra')
+source=("https://github.com/linuxdeepin/deepin-camera/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('30c7a883079aa48f4cf95731761d5a7a962c986414936d0adc7180f2f0b195f7643cc420b81af8508e01aa512949fd883360f33e4cdf66cc7b70fd58e1a093a4')
+
+prepare() {
+  cd deepin-camera-$pkgver
+  sed -i '/#include <QThread>/i #include <thread>' src/src/windowstatethread.h
+
+  # https://github.com/linuxdeepin/deepin-camera/issues/2
+  sed -i 's/LIBAVFORMAT_VERSION_MAJOR >= 57 && LIBAVFORMAT_VERSION_MINOR <= 25/LIBAVFORMAT_VERSION_MAJOR >= 57/' src/src/imageitem.cpp
+} 
+
+build() {
+  cd deepin-camera-$pkgver
+  cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib .
+  ninja
+}
+
+package() {
+  cd deepin-camera-$pkgver
+  DESTDIR="$pkgdir" ninja install
+}



More information about the arch-commits mailing list