[arch-commits] Commit in guvcview/trunk (PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Tue Nov 2 17:47:57 UTC 2021
Date: Tuesday, November 2, 2021 @ 17:47:56
Author: arojas
Revision: 1035402
Update to 2.0.7
Modified:
guvcview/trunk/PKGBUILD
----------+
PKGBUILD | 27 ++++++++++++++++-----------
1 file changed, 16 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-02 17:44:32 UTC (rev 1035401)
+++ PKGBUILD 2021-11-02 17:47:56 UTC (rev 1035402)
@@ -4,8 +4,8 @@
pkgbase=guvcview
pkgname=(guvcview guvcview-common guvcview-qt)
-pkgver=2.0.6
-pkgrel=5
+pkgver=2.0.7
+pkgrel=1
pkgdesc='Simple interface for capturing and viewing video from v4l2 devices'
arch=('x86_64')
url='http://guvcview.sourceforge.net/'
@@ -13,30 +13,35 @@
depends=('ffmpeg' 'gsl' 'gtk3' 'qt5-base' 'portaudio')
makedepends=('intltool')
options=('!emptydirs')
-source=("https://downloads.sourceforge.net/$pkgbase/$pkgbase-src-$pkgver.tar.gz"
+source=("https://downloads.sourceforge.net/$pkgbase/$pkgbase-src-$pkgver-2.tar.bz2"
'0001-Update-AppStream-metadata-to-a-newer-version.patch')
-sha256sums=('95381cef5ee139e15f90b79d1425cc22bbaae43f87452cdce6674636aff37e85'
+sha256sums=('f0d1d7814597d42fddf1655f3654f74efd9f27e35bbe39ee4f0d42683de85c98'
'd9c65a9bf53eb28c48f9a9126035f5ebe520923124eae507d1cb2994e2a0d08f')
+noextract=($pkgbase-src-$pkgver-2.tar.bz2) # missing root dir
prepare() {
- cd $pkgbase-src-$pkgver
+ mkdir $pkgbase
+ tar xjf $pkgbase-src-$pkgver-2.tar.bz2 -C $pkgbase
+ cd $pkgbase
# Update AppStream metadata to a newer version
patch -Np1 -i ../0001-Update-AppStream-metadata-to-a-newer-version.patch
autoreconf -fi
- cp -a ../$pkgbase{,-qt}-src-$pkgver
+
+ cd ..
+ cp -a $pkgbase{,-qt}
}
build() {
# GTK+ version
- cd $pkgbase-src-$pkgver
+ cd $pkgbase
./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
+ cd ../$pkgbase-qt
./configure --prefix=/usr --disable-debian-menu --disable-gtk3 --enable-qt5
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
@@ -46,7 +51,7 @@
pkgdesc="Common files for guvcview"
depends=('ffmpeg' 'gsl' 'libusb' 'portaudio')
- cd $pkgbase-src-$pkgver
+ cd $pkgbase
make DESTDIR="$pkgdir" install
make -C guvcview DESTDIR="$pkgdir" uninstall
make -C data DESTDIR="$pkgdir" uninstall-man1 uninstall-appdataDATA uninstall-desktopDATA
@@ -57,7 +62,7 @@
pkgdesc="Simple GTK+ interface for capturing and viewing video from v4l2 devices"
depends=('guvcview-common' 'gtk3')
- cd $pkgbase-src-$pkgver
+ cd $pkgbase
make -C guvcview DESTDIR="$pkgdir" install
make -C data DESTDIR="$pkgdir" install-man1 install-appdataDATA install-desktopDATA
sed -i 's/^Icon=.*/Icon=guvcview/' "$pkgdir"/usr/share/applications/guvcview.desktop
@@ -67,7 +72,7 @@
pkgdesc="Simple Qt interface for capturing and viewing video from v4l2 devices"
depends=('guvcview-common' 'qt5-base')
- cd $pkgbase-qt-src-$pkgver
+ cd $pkgbase-qt
make -C guvcview DESTDIR="$pkgdir" install
make -C data DESTDIR="$pkgdir" install-man1 install-appdataDATA install-desktopDATA
mv "$pkgdir"/usr/bin/guvcview{,-qt}
More information about the arch-commits
mailing list