[arch-commits] Commit in guvcview/trunk (PKGBUILD)
Balló György
bgyorgy at archlinux.org
Sun Jan 21 15:28:58 UTC 2018
Date: Sunday, January 21, 2018 @ 15:28:55
Author: bgyorgy
Revision: 284564
upgpkg: guvcview 2.0.5-3
Adopt the package, build both GTK+ and Qt versions
Modified:
guvcview/trunk/PKGBUILD
----------+
PKGBUILD | 65 +++++++++++++++++++++++++++++++++++++++++++++----------------
1 file changed, 49 insertions(+), 16 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-01-21 15:22:05 UTC (rev 284563)
+++ PKGBUILD 2018-01-21 15:28:55 UTC (rev 284564)
@@ -1,31 +1,64 @@
# $Id$
-# Maintainer: Giovanni Scafora <giovanni at archlinux.org>
+# 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>
-pkgname=guvcview
+pkgbase=guvcview
+pkgname=(guvcview guvcview-qt)
pkgver=2.0.5
-pkgrel=2
-pkgdesc="A video viewer and capturer for the linux uvc driver"
+pkgrel=3
+pkgdesc="Simple interface for capturing and viewing video from v4l2 devices"
arch=('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")
+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 "${srcdir}/${pkgname}-src-${pkgver}"
-
- ./configure --prefix=/usr \
- --disable-debian-menu
+ 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 "${srcdir}/${pkgname}-src-${pkgver}"
+ cd $pkgbase-src-$pkgver
+ make DESTDIR="$pkgdir" install
+}
- 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