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

Balló György bgyorgy at archlinux.org
Mon Mar 21 16:28:54 UTC 2016


    Date: Monday, March 21, 2016 @ 17:28:53
  Author: bgyorgy
Revision: 167831

Move autoreconf to prepare function

Modified:
  gdesklets/trunk/PKGBUILD

----------+
 PKGBUILD |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-03-21 16:24:23 UTC (rev 167830)
+++ PKGBUILD	2016-03-21 16:28:53 UTC (rev 167831)
@@ -23,27 +23,27 @@
          '45e81dd0fb20157bb840d006c3a4e2ea')
 
 prepare() {
-  cd "$srcdir/$pkgname-$pkgver"
+  cd $pkgname-$pkgver
 
   # Build fix
-  patch -Np0 -i "$srcdir/gdesklets-core-0.36.3-.in-files.patch"
+  patch -Np0 -i ../gdesklets-core-0.36.3-.in-files.patch
 
   # Runtime fix without gnome-vfs
-  patch -Np1 -i "$srcdir/fix-vfs.patch"
+  patch -Np1 -i ../fix-vfs.patch
 
   # Make gconf dependency optional
-  patch -Np1 -i "$srcdir/make-gconf-optional.patch"
+  patch -Np1 -i ../make-gconf-optional.patch
 
   # Python2 fix
   find . -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
   sed -i 's/python -c/$PYTHON -c/' configure.ac
   sed -i 's/python/python2/' shell/plugins/PackageInstaller/__init__.py
+
+  autoreconf -fi
 }
 
 build() {
-  cd "$srcdir/$pkgname-$pkgver"
-
-  autoreconf -fi
+  cd $pkgname-$pkgver
   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
               --disable-static \
               PYTHON=python2
@@ -51,6 +51,6 @@
 }
 
 package() {
-  cd "$srcdir/$pkgname-$pkgver"
-  make DESTDIR="$pkgdir/" install
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
 }



More information about the arch-commits mailing list