summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge2019-04-29 14:43:07 +0200
committerDavid Runge2019-04-29 14:43:07 +0200
commit6e172c5ce557513f21283a1713615c436823bb75 (patch)
tree51312d75a6efaa2cfc7837a2d75aa84f238e1d14
downloadaur-6e172c5ce557513f21283a1713615c436823bb75.tar.gz
PKGBUILD: Moving v4l2ucp to the AUR (qt4 purge). Changing to correct license (GPL2).
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD36
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..54abaf7abd5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = v4l2ucp
+ pkgdesc = A universal control panel for Video for Linux Two (V4L2) devices
+ pkgver = 2.0.2
+ pkgrel = 5
+ url = http://v4l2ucp.sourceforge.net/
+ arch = x86_64
+ license = GPL2
+ makedepends = cmake
+ depends = qt4
+ depends = v4l-utils
+ optdepends = mplayer: video preview
+ source = https://downloads.sourceforge.net/sourceforge/v4l2ucp/v4l2ucp-2.0.2.tar.bz2
+ sha512sums = 4c1e4e9fa5f8388a179632918edda2f5b84737370bf6eb67fe4b05215f0fc67f59df4749d7e86aa4da288da0eedf646978e0c84332054ec561a7c814b079fefc
+
+pkgname = v4l2ucp
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..039ea09c6bd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: David Runge <dave@sleepmap.de>
+# Contributor: speps <speps at aur dot archlinux dot org>
+# Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
+# Contributor: Giovanni Scafora <linuxmania@gmail.com>
+
+pkgname=v4l2ucp
+pkgver=2.0.2
+pkgrel=5
+pkgdesc="A universal control panel for Video for Linux Two (V4L2) devices"
+arch=('x86_64')
+url="http://v4l2ucp.sourceforge.net/"
+license=('GPL2')
+depends=('qt4' 'v4l-utils')
+optdepends=('mplayer: video preview')
+makedepends=('cmake')
+source=("https://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
+sha512sums=('4c1e4e9fa5f8388a179632918edda2f5b84737370bf6eb67fe4b05215f0fc67f59df4749d7e86aa4da288da0eedf646978e0c84332054ec561a7c814b079fefc')
+
+prepare() {
+ cd "${pkgname}-${pkgver}"
+ # use videodev2.h header
+ sed -i 's/videodev/&2/' src/v4l2ctrl.c
+ mkdir -vp build
+}
+
+build() {
+ cd "${pkgname}-${pkgver}/build"
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ ..
+ make
+}
+
+package() {
+ cd "${pkgname}-${pkgver}/build"
+ make DESTDIR="$pkgdir/" install
+}