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

Tobias Powalowski tpowa at nymeria.archlinux.org
Sun May 19 08:52:41 UTC 2013


    Date: Sunday, May 19, 2013 @ 10:52:40
  Author: tpowa
Revision: 185792

upgpkg: xsane 0.998-5

remove /usr/sbin

Modified:
  xsane/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-19 08:29:08 UTC (rev 185791)
+++ PKGBUILD	2013-05-19 08:52:40 UTC (rev 185792)
@@ -5,7 +5,7 @@
 pkgbase=xsane
 pkgname=('xsane' 'xsane-gimp')
 pkgver=0.998
-pkgrel=4
+pkgrel=5
 arch=(i686 x86_64)
 url="http://www.xsane.org"
 license=('GPL2')
@@ -15,12 +15,16 @@
 md5sums=('936f1cc76b37caa8f285e1e15ac7e0aa'
          '15541ff0ddc10acfa2059cf99d5478eb')
 
-build() {
-  cd "$srcdir/$pkgbase-$pkgver"
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
   # fix use "xdg-open" instead of "netscape" to launch help browser - taken from Fedora
-  patch -Np1 -i "${srcdir}/xsane-0.995-xdg-open.patch"
+  patch -Np1 -i ${srcdir}/xsane-0.995-xdg-open.patch
   sed -i -e 's:png_ptr->jmpbuf:png_jmpbuf(png_ptr):' src/xsane-save.c
+}
 
+build() {
+  cd "$srcdir/$pkgbase-$pkgver"
+
   ./configure --prefix=/usr \
     --mandir=/usr/share/man \
     --enable-gimp
@@ -29,7 +33,7 @@
 
   # build again with gimp enabled
   make clean
-  ./configure --prefix=/usr --mandir=/usr/share/man --disable-gimp
+  ./configure --prefix=/usr --sbindir=/usr/bin --mandir=/usr/share/man --disable-gimp
   make
 }
 
@@ -49,9 +53,10 @@
   install -D -m755 src/xsane-gimp "${pkgdir}/usr/bin/xsane-gimp"
 
   ## For making Gimp Plugin available 
-  /bin/mkdir -p "$pkgdir/usr/lib/gimp/2.0/plug-ins"
-  cd "$pkgdir/usr/lib/gimp/2.0/plug-ins/"
-  /bin/ln -s ../../../../bin/xsane-gimp xsane
+  mkdir -p "$pkgdir/usr/lib/gimp/2.0/plug-ins"
+  ln -sf /usr/bin/xsane-gimp $pkgdir/usr/lib/gimp/2.0/plug-ins/xsane
+  #cd "$pkgdir/usr/lib/gimp/2.0/plug-ins/"
+  #/bin/ln -s ../../../../bin/xsane-gimp xsane
 
 # http://cvs.fedoraproject.org/viewvc/rpms/xsane/devel/xsane.spec?revision=1.80&view=markup
 # when makepkg will allow splitted pkg install file support we might change add a xsane-gimp.install file with the commands that are used by fedora, 




More information about the arch-commits mailing list