summaryrefslogtreecommitdiff
path: root/staging/xsane
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2012-02-05 17:25:05 +0000
committerParabola <dev@list.parabolagnulinux.org>2012-02-05 17:25:05 +0000
commit359d940358dec836dd0acfe9d9caf0b1ff0a97fe (patch)
treeeeed5f77c8417a98fe5b8538d3c019d1cea00c04 /staging/xsane
parentcdc66cc7110e78bf1197f9effc70422114f9341b (diff)
Sun Feb 5 17:25:01 UTC 2012
Diffstat (limited to 'staging/xsane')
-rw-r--r--staging/xsane/PKGBUILD68
-rw-r--r--staging/xsane/xsane-0.995-xdg-open.patch12
-rw-r--r--staging/xsane/xsane.install16
3 files changed, 0 insertions, 96 deletions
diff --git a/staging/xsane/PKGBUILD b/staging/xsane/PKGBUILD
deleted file mode 100644
index aa022720b..000000000
--- a/staging/xsane/PKGBUILD
+++ /dev/null
@@ -1,68 +0,0 @@
-# $Id: PKGBUILD 147252 2012-01-25 03:22:07Z eric $
-# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
-# Contributor: Sarah Hay <sarahhay@mb.sympatico.ca>
-
-pkgbase=xsane
-pkgname=('xsane' 'xsane-gimp')
-pkgver=0.998
-pkgrel=2
-arch=(i686 x86_64)
-url="http://www.xsane.org"
-license=('GPL2')
-makedepends=('gtk2' 'lcms' 'sane' 'zlib' 'libjpeg' 'gimp')
-source=(http://www.xsane.org/download/$pkgname-$pkgver.tar.gz
- xsane-0.995-xdg-open.patch)
-md5sums=('936f1cc76b37caa8f285e1e15ac7e0aa'
- '15541ff0ddc10acfa2059cf99d5478eb')
-
-build() {
- cd "$srcdir/$pkgbase-$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"
- sed -i -e 's:png_ptr->jmpbuf:png_jmpbuf(png_ptr):' src/xsane-save.c
-
- ./configure --prefix=/usr --mandir=/usr/share/man --enable-gimp
- make
- mv src/xsane src/xsane-gimp
-
- # build again with gimp enabled
- make clean
- ./configure --prefix=/usr --mandir=/usr/share/man --disable-gimp
- make
-}
-
-package_xsane() {
- pkgdesc="A GTK-based X11 frontend for SANE and plugin for Gimp."
- install=$pkgname.install
- depends=('gtk2' 'lcms' 'sane' 'zlib' 'libjpeg')
- optdepends=('xsane-gimp: for gimp plugin support')
- cd "$srcdir/$pkgbase-$pkgver"
- make DESTDIR="$pkgdir" install
-}
-
-package_xsane-gimp() {
- pkgdesc="XSane Gimp plugin"
- depends=('xsane' 'gimp')
- cd "$srcdir/$pkgbase-$pkgver"
- 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
-
-# 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,
-# gentoo has something similar
-#%post gimp
-#107 if [ -x "%{_sbindir}/gimp-plugin-mgr" ]; then
-#108 %{_sbindir}/gimp-plugin-mgr --install xsane
-#109 fi
-#110
-#111 %preun gimp
-#112 if [ $1 = 0 ]; then
-#113 if [ -x "%{_sbindir}/gimp-plugin-mgr" ]; then
-#114 %{_sbindir}/gimp-plugin-mgr --uninstall xsane
-#115 fi
-#116 fi
-}
diff --git a/staging/xsane/xsane-0.995-xdg-open.patch b/staging/xsane/xsane-0.995-xdg-open.patch
deleted file mode 100644
index db1f9bd68..000000000
--- a/staging/xsane/xsane-0.995-xdg-open.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -up xsane-0.995/src/xsane.h.xdg-open xsane-0.995/src/xsane.h
---- xsane-0.995/src/xsane.h.xdg-open 2007-08-13 09:20:32.000000000 +0200
-+++ xsane-0.995/src/xsane.h 2007-11-23 11:50:49.000000000 +0100
-@@ -251,7 +251,7 @@
- # elif defined(HAVE_OS2_H)
- # define DEFAULT_BROWSER "netscape"
- # else
--# define DEFAULT_BROWSER "netscape"
-+# define DEFAULT_BROWSER "xdg-open"
- # endif
- #endif
-
diff --git a/staging/xsane/xsane.install b/staging/xsane/xsane.install
deleted file mode 100644
index aa3e3b8f8..000000000
--- a/staging/xsane/xsane.install
+++ /dev/null
@@ -1,16 +0,0 @@
-# arg 1: the new package version
-# arg 2: the old package version
-
-post_install() {
- echo "NOTE:"
- echo " If you experience any problems after installing xsane "
- echo " it may help to remove the setup and preferences files"
- echo " of xsane:"
- echo ""
- echo " \$ rm -rf ~/.sane/xsane"
- echo ""
-}
-
-post_upgrade() {
- post_install $1
-}