[arch-commits] Commit in deepin-camera/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri May 28 18:34:40 UTC 2021


    Date: Friday, May 28, 2021 @ 18:34:40
  Author: felixonmars
Revision: 950041

upgpkg: deepin-camera 1.1.3-1

Modified:
  deepin-camera/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-28 18:27:52 UTC (rev 950040)
+++ PKGBUILD	2021-05-28 18:34:40 UTC (rev 950041)
@@ -1,7 +1,7 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=deepin-camera
-pkgver=1.0.0.16
+pkgver=1.1.3
 pkgrel=1
 pkgdesc='Tool to view camera, take photo and video'
 arch=('x86_64')
@@ -8,23 +8,24 @@
 url="https://github.com/linuxdeepin/deepin-camera"
 license=('GPL3')
 depends=('deepin-qt5integration' 'deepin-qt-dbus-factory' 'ffmpeg' 'ffmpegthumbnailer' 'portaudio' 'pulseaudio')
-makedepends=('deepin-gettext-tools' 'qt5-tools')
+makedepends=('cmake' 'deepin-gettext-tools' 'ninja' 'qt5-tools')
 groups=('deepin-extra')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-camera/archive/$pkgver.tar.gz")
-sha512sums=('91a3fec9b0a8e0dcea922b36c5e5c82a22ded81dd5263ed0c800c489af6b8309b1d067618b215e6f58fddeed0a6942e2175d5c89626dc40a76ef2271f77903c7')
+source=("https://github.com/linuxdeepin/deepin-camera/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('75d5b270d819c1cc517c815a19acce62e93d3981613c70579b3d0f4245c77a33f3e5db3a9f696b7f5ef669fb3f35840b8929431b7a38b15c94cfa778912fea56')
 
 prepare() {
   cd deepin-camera-$pkgver
-  sed -i '/^CONFIG/a LIBS = -lpulse' libcam/libcam.pro
-}
+  # 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
-  qmake-qt5 PREFIX=/usr
-  make
+  cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib .
+  ninja
 }
 
 package() {
   cd deepin-camera-$pkgver
-  make INSTALL_ROOT="$pkgdir" install
+  DESTDIR="$pkgdir" ninja install
 }



More information about the arch-commits mailing list