diff options
author | Tobias Powalowski | 2013-05-19 08:52:40 +0000 |
---|---|---|
committer | Tobias Powalowski | 2013-05-19 08:52:40 +0000 |
commit | 0f5938c01315948f48415af5b966e8b4d69f4123 (patch) | |
tree | 6d3e816290660cb226709a4d36c3286fe9a39351 | |
parent | d51b6c7d2f5fca8cb38c27d1c057af3dacc2ee6a (diff) | |
download | aur-0f5938c01315948f48415af5b966e8b4d69f4123.tar.gz |
remove /usr/sbin
-rw-r--r-- | PKGBUILD | 21 |
1 files changed, 13 insertions, 8 deletions
@@ -4,7 +4,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') @@ -14,11 +14,15 @@ source=(http://www.xsane.org/download/$pkgname-$pkgver.tar.gz 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 \ @@ -28,7 +32,7 @@ build() { # 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 } @@ -48,9 +52,10 @@ package_xsane-gimp() { 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, |