[arch-commits] Commit in mediastreamer/trunk (PKGBUILD)

Eric Bélanger eric at nymeria.archlinux.org
Tue Apr 16 22:28:54 UTC 2013


    Date: Wednesday, April 17, 2013 @ 00:28:54
  Author: eric
Revision: 183010

upgpkg: mediastreamer 2.8.2-5

Rebuild against ffmpeg (close  FS#34594), Add prepare function

Modified:
  mediastreamer/trunk/PKGBUILD

----------+
 PKGBUILD |   12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-04-16 20:56:04 UTC (rev 183009)
+++ PKGBUILD	2013-04-16 22:28:54 UTC (rev 183010)
@@ -6,7 +6,7 @@
 
 pkgname=mediastreamer
 pkgver=2.8.2
-pkgrel=4
+pkgrel=5
 pkgdesc="A library written in C that allows you to create and run audio and video streams"
 arch=('i686' 'x86_64')
 url="http://www.linphone.org/"
@@ -20,14 +20,18 @@
          '805da7def98f367e621363fa0c951fe8'
          '553d5d47ea4a8c8dfeabdc0281849d5f')
 
+prepare() {
+  cd $pkgname-$pkgver
+  patch -p1 -i "${srcdir}"/mediastreamer-ffmpeg.patch
+}
+
 build() {
-  cd "${srcdir}"/$pkgname-$pkgver
-  patch -p1 -i "${srcdir}"/mediastreamer-ffmpeg.patch
+  cd $pkgname-$pkgver
   ./configure --prefix=/usr
   make
 }
 
 package() {
-  cd "${srcdir}"/$pkgname-$pkgver
+  cd $pkgname-$pkgver
   make DESTDIR="${pkgdir}" install
 }




More information about the arch-commits mailing list