[arch-commits] Commit in motion/trunk (PKGBUILD motion-3.2.11-offsett.patch)

Eric Bélanger eric at archlinux.org
Sun Jan 11 23:11:38 UTC 2009


    Date: Sunday, January 11, 2009 @ 18:11:37
  Author: eric
Revision: 24012

upgpkg: motion 3.2.10.1-5
    rebuilt against ffmpeg 20081220, rebuilt against x264 20090108, disabled SMP build

Added:
  motion/trunk/motion-3.2.11-offsett.patch
Modified:
  motion/trunk/PKGBUILD

-----------------------------+
 PKGBUILD                    |   17 +++++++++--------
 motion-3.2.11-offsett.patch |   13 +++++++++++++
 2 files changed, 22 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-01-11 23:06:35 UTC (rev 24011)
+++ PKGBUILD	2009-01-11 23:11:37 UTC (rev 24012)
@@ -3,21 +3,22 @@
 
 pkgname=motion
 pkgver=3.2.10.1
-pkgrel=4
+pkgrel=5
 pkgdesc="Motion is a software motion detector. It grabs images from video4linux devices and/or from webcams."
 arch=(i686 x86_64)
 license=('GPL')
 url="http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome"
-depends=('curl' 'ffmpeg>=20080625' 'libogg' 'libvorbis' 'lame' 'xvidcore' 'x264>=20080625' 'mjpegtools')
-source=(http://dl.sf.net/sourceforge/motion/$pkgname-$pkgver.tar.gz rc.motion motion-3.2.10.1-ffmpegheaders.patch)
+depends=('curl' 'ffmpeg>=20081220' 'libogg' 'libvorbis' 'lame' 'xvidcore' 'x264>=20090108' 'mjpegtools')
+options=('!makeflags')
+source=(http://downloads.sourceforge.net/sourceforge/motion/$pkgname-$pkgver.tar.gz rc.motion motion-3.2.10.1-ffmpegheaders.patch motion-3.2.11-offsett.patch)
 md5sums=('5ffdc958313345c69d3e0d5ec5c013cd' 'fc09828564850824f8549d258053e0b6'\
-         '28bf5e6909fe73e41dde5f8f1101e6dd')
+         '28bf5e6909fe73e41dde5f8f1101e6dd' 'b4f9a30cf47d403f8098ade75ed4350f')
 
 build() {
-  cd $startdir/src/$pkgname-$pkgver || return 1
-
-  patch -p1 < ../motion-3.2.10.1-ffmpegheaders.patch
-  autoreconf
+  cd $startdir/src/$pkgname-$pkgver
+  patch -p1 < ../motion-3.2.11-offsett.patch || return 1
+  patch -p1 < ../motion-3.2.10.1-ffmpegheaders.patch || return 1
+  autoreconf || return 1
   ./configure --prefix=/usr --without-pgsql --without-mysql \
   	--with-libavcodec=/usr/lib/ --sysconfdir=/etc/$pkgname || return 1
 

Added: motion-3.2.11-offsett.patch
===================================================================
--- motion-3.2.11-offsett.patch	                        (rev 0)
+++ motion-3.2.11-offsett.patch	2009-01-11 23:11:37 UTC (rev 24012)
@@ -0,0 +1,13 @@
+Index: motion-3.2.11/ffmpeg.c
+===================================================================
+--- motion-3.2.11.orig/ffmpeg.c
++++ motion-3.2.11/ffmpeg.c
+@@ -164,7 +164,7 @@ static int file_write(URLContext *h, uns
+     return write(fd, buf, size);
+ }
+ 
+-static offset_t file_seek(URLContext *h, offset_t pos, int whence)
++static int64_t file_seek(URLContext *h, int64_t pos, int whence)
+ {
+     int fd = (size_t)h->priv_data;
+     return lseek(fd, pos, whence);




More information about the arch-commits mailing list