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

Eric Bélanger eric at nymeria.archlinux.org
Fri Jul 12 01:21:12 UTC 2013


    Date: Friday, July 12, 2013 @ 03:21:12
  Author: eric
Revision: 189964

upgpkg: moc 1:2.5beta1-4

Rebuild against ffmpeg 2.0 and x264 20130702, Add prepare function

Modified:
  moc/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-07-11 23:41:17 UTC (rev 189963)
+++ PKGBUILD	2013-07-12 01:21:12 UTC (rev 189964)
@@ -3,7 +3,7 @@
 
 pkgname=moc
 pkgver=2.5beta1
-pkgrel=3
+pkgrel=4
 epoch=1
 pkgdesc="An ncurses console audio player designed to be powerful and easy to use"
 arch=('i686' 'x86_64')
@@ -41,9 +41,13 @@
   gpg --detach-sign --use-agent -u ${GPGKEY} ${pkgname}-${pkgver}.tar.xz
 }
 
+prepare() {
+  cd ${pkgname}-2.5.0-beta1
+  patch -p0 -i "${srcdir}/moc-ffmpeg.patch"
+}
+
 build() {
-  cd "${srcdir}/${pkgname}-2.5.0-beta1"
-  patch -p0 -i "${srcdir}/moc-ffmpeg.patch"
+  cd ${pkgname}-2.5.0-beta1
   ./configure --prefix=/usr --without-rcc \
     --with-oss --with-alsa --with-jack --with-aac --with-mp3 \
     --with-musepack --with-vorbis --with-flac --with-wavpack \
@@ -53,6 +57,6 @@
 }
 
 package() {
-  cd "${srcdir}/${pkgname}-2.5.0-beta1"
+  cd ${pkgname}-2.5.0-beta1
   make DESTDIR="${pkgdir}" install
 }




More information about the arch-commits mailing list