summaryrefslogtreecommitdiff
path: root/extra/kino
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-10-23 23:14:59 +0000
committerroot <root@rshg054.dnsready.net>2011-10-23 23:14:59 +0000
commitc0bc46632845dfc241d3290d8d3193287eaeb02e (patch)
tree15e467e4985d599a312014b62fd555cbc4cdffc7 /extra/kino
parent789905b5e6b809a564832ba85b842988405e7375 (diff)
Sun Oct 23 23:14:58 UTC 2011
Diffstat (limited to 'extra/kino')
-rw-r--r--extra/kino/PKGBUILD24
-rw-r--r--extra/kino/kino.install3
-rw-r--r--extra/kino/videodev-header.patch26
3 files changed, 43 insertions, 10 deletions
diff --git a/extra/kino/PKGBUILD b/extra/kino/PKGBUILD
index eedf2910f..f283fe014 100644
--- a/extra/kino/PKGBUILD
+++ b/extra/kino/PKGBUILD
@@ -1,26 +1,34 @@
-# $Id: PKGBUILD 56265 2009-10-20 20:59:02Z giovanni $
+# $Id: PKGBUILD 141051 2011-10-22 15:12:07Z andrea $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Robert Emil Berge <robert@rebi.no>
pkgname=kino
pkgver=1.3.4
-pkgrel=2
-pkgdesc="A non-linear DV editor."
+pkgrel=3
+pkgdesc="A non-linear DV editor"
arch=('i686' 'x86_64')
url="http://www.kinodv.org/"
license=('GPL')
depends=('libavc1394' 'libiec61883' 'libdv' 'libglade' 'libxv' 'libsamplerate' 'libsm')
-makedepends=('intltool')
+makedepends=('intltool' 'v4l-utils')
options=('!libtool')
install=kino.install
-source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz)
-md5sums=('52f8ce690e45a089e3edc6c7af61a05c')
+source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz"
+ 'videodev-header.patch')
+md5sums=('52f8ce690e45a089e3edc6c7af61a05c'
+ '940404c0eec3c9d954c289ceb52d15a6')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
+
+ patch -p1 -i "${srcdir}"/videodev-header.patch
+
./configure --prefix=/usr \
--with-udev-rules-dir=/lib/udev/rules.d
- make || return 1
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
- chown root:root -R $pkgdir/usr/share/kino/help
}
diff --git a/extra/kino/kino.install b/extra/kino/kino.install
index 7dc309965..83b78df92 100644
--- a/extra/kino/kino.install
+++ b/extra/kino/kino.install
@@ -1,14 +1,13 @@
post_install() {
- echo "update desktop mime database..."
update-mime-database usr/share/mime 1> /dev/null
update-desktop-database -q
}
+
post_upgrade() {
post_install $1
}
post_remove() {
- echo "update desktop mime database..."
update-mime-database usr/share/mime 1> /dev/null
update-desktop-database -q
}
diff --git a/extra/kino/videodev-header.patch b/extra/kino/videodev-header.patch
new file mode 100644
index 000000000..01394fc47
--- /dev/null
+++ b/extra/kino/videodev-header.patch
@@ -0,0 +1,26 @@
+Index: kino-1.3.4/ffmpeg/libavdevice/v4l.c
+===================================================================
+--- kino-1.3.4.orig/ffmpeg/libavdevice/v4l.c 2011-04-11 15:12:41.915593967 +0200
++++ kino-1.3.4/ffmpeg/libavdevice/v4l.c 2011-04-11 15:13:05.825593979 +0200
+@@ -26,7 +26,7 @@
+ #include <sys/mman.h>
+ #include <sys/time.h>
+ #define _LINUX_TIME_H 1
+-#include <linux/videodev.h>
++#include <libv4l1-videodev.h>
+ #include <time.h>
+
+ typedef struct {
+Index: kino-1.3.4/src/v4l.h
+===================================================================
+--- kino-1.3.4.orig/src/v4l.h 2011-04-11 15:12:41.895593967 +0200
++++ kino-1.3.4/src/v4l.h 2011-04-11 15:12:57.555593975 +0200
+@@ -40,7 +40,7 @@
+
+ #define _DEVICE_H_
+ #define _LINUX_TIME_H
+-#include <linux/videodev.h>
++#include <libv4l1-videodev.h>
+
+ #include "displayer.h"
+