diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/simple-scan |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/simple-scan')
-rw-r--r-- | community/simple-scan/PKGBUILD | 32 | ||||
-rw-r--r-- | community/simple-scan/simple-scan.install | 24 |
2 files changed, 56 insertions, 0 deletions
diff --git a/community/simple-scan/PKGBUILD b/community/simple-scan/PKGBUILD new file mode 100644 index 000000000..be7ae595f --- /dev/null +++ b/community/simple-scan/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Thomas Dziedzic < gostrc at gmail > +# Contributor: Joeny Ang <ang(dot)joeny(at)gmail(dot)com> + +pkgname=simple-scan +pkgver=2.32.0.1 +pkgrel=1 +pkgdesc='Simple scanning utility' +arch=('i686' 'x86_64') +url='http://launchpad.net/simple-scan' +license=('GPL3') +depends=('sane' 'gconf') +makedepends=('gnome-doc-utils' 'intltool') +install="${pkgname}.install" +source=("http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${pkgver:0:4}/${pkgname}-${pkgver}.tar.bz2") +md5sums=('9c0682f1aa6b338222b973fec6162e87') + +build() { + cd ${pkgname}-${pkgver} + + ./configure \ + --prefix=/usr \ + --with-gconf-schema-file-dir=/usr/share/gconf/schemas \ + --disable-schemas-install + + make +} + +package() { + cd ${pkgname}-${pkgver} + + make DESTDIR=${pkgdir} install +} diff --git a/community/simple-scan/simple-scan.install b/community/simple-scan/simple-scan.install new file mode 100644 index 000000000..9893818d9 --- /dev/null +++ b/community/simple-scan/simple-scan.install @@ -0,0 +1,24 @@ +pkgname=simple-scan + +post_install() { + echo -n "Installing GConf schemas..." + usr/sbin/gconfpkg --install ${pkgname} + + [ $? -eq 0 ] && echo " Done." || echo " FAILED!" +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + echo -n "Removing GConf schemas..." + usr/sbin/gconfpkg --uninstall ${pkgname} + + [ $? -eq 0 ] && echo " Done." || echo " FAILED!" +} + |