[arch-commits] Commit in guvcview/repos/community-x86_64 (PKGBUILD PKGBUILD)

Balló György bgyorgy at archlinux.org
Sun Jan 21 15:29:08 UTC 2018


    Date: Sunday, January 21, 2018 @ 15:29:04
  Author: bgyorgy
Revision: 284565

archrelease: copy trunk to community-x86_64

Added:
  guvcview/repos/community-x86_64/PKGBUILD
    (from rev 284564, guvcview/trunk/PKGBUILD)
Deleted:
  guvcview/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   95 +++++++++++++++++++++++++++++++++++++++++--------------------
 1 file changed, 64 insertions(+), 31 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-21 15:28:55 UTC (rev 284564)
+++ PKGBUILD	2018-01-21 15:29:04 UTC (rev 284565)
@@ -1,31 +0,0 @@
-# $Id$
-# Maintainer: Giovanni Scafora <giovanni at archlinux.org>
-# Contributor: Maxwell Pray a.k.a. Synthead <synthead at gmail.com>
-
-pkgname=guvcview
-pkgver=2.0.5
-pkgrel=2
-pkgdesc="A video viewer and capturer for the linux uvc driver"
-arch=('i686' 'x86_64')
-url="http://guvcview.sourceforge.net/"
-license=('GPL')
-depends=('portaudio' 'ffmpeg' 'gtk3' 'sdl2' 'gsl' 'libusb')
-makedepends=('pkg-config' 'intltool')
-optdepends=('pulseaudio: for PulseAudio support')
-options=('!docs' '!buildflags')
-source=("http://downloads.sourceforge.net/project/${pkgname}/source/${pkgname}-src-${pkgver}.tar.gz")
-sha256sums=('a86beb5993a8449ed3cbcc6ec2a238ef0b90138b6cbe2afab4456d37f44c41a0')
-
-build() {
-  cd "${srcdir}/${pkgname}-src-${pkgver}"
-
-  ./configure --prefix=/usr \
-              --disable-debian-menu
-  make
-}
-
-package() {
-  cd "${srcdir}/${pkgname}-src-${pkgver}"
-
-  make DESTDIR="${pkgdir}" install
-}

Copied: guvcview/repos/community-x86_64/PKGBUILD (from rev 284564, guvcview/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-01-21 15:29:04 UTC (rev 284565)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
+# Contributor: Maxwell Pray a.k.a. Synthead <synthead at gmail.com>
+
+pkgbase=guvcview
+pkgname=(guvcview guvcview-qt)
+pkgver=2.0.5
+pkgrel=3
+pkgdesc="Simple interface for capturing and viewing video from v4l2 devices"
+arch=('x86_64')
+url="http://guvcview.sourceforge.net/"
+license=('GPL3')
+depends=('ffmpeg' 'gsl' 'gtk3' 'qt5-base' 'portaudio')
+makedepends=('intltool')
+source=("https://downloads.sourceforge.net/$pkgbase/$pkgbase-src-$pkgver.tar.gz")
+sha256sums=('a86beb5993a8449ed3cbcc6ec2a238ef0b90138b6cbe2afab4456d37f44c41a0')
+
+build() {
+  cd $pkgbase-src-$pkgver
+  ./configure --prefix=/usr --disable-debian-menu
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+}
+
+package() {
+  cd $pkgbase-src-$pkgver
+  make DESTDIR="$pkgdir" install
+}
+
+prepare() {
+  cp -a $pkgbase{,-qt}-src-$pkgver
+}
+
+build() {
+  # GTK+ version
+  cd $pkgbase-src-$pkgver
+  ./configure --prefix=/usr --disable-debian-menu
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+
+  # Qt version
+  cd ../$pkgbase-qt-src-$pkgver
+  ./configure --prefix=/usr --disable-debian-menu --disable-gtk3 --enable-qt5
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+}
+
+package_guvcview() {
+  pkgdesc="Simple GTK+ interface for capturing and viewing video from v4l2 devices"
+  depends=('ffmpeg' 'gsl' 'gtk3' 'portaudio')
+
+  cd $pkgbase-src-$pkgver
+  make DESTDIR="$pkgdir" install
+}
+
+package_guvcview-qt() {
+  pkgdesc="Simple Qt interface for capturing and viewing video from v4l2 devices"
+  depends=('ffmpeg' 'gsl' 'qt5-base' 'portaudio')
+  conflicts=('guvcview')
+
+  cd $pkgbase-qt-src-$pkgver
+  make DESTDIR="$pkgdir" install
+}



More information about the arch-commits mailing list