You are not logged in.

#1 2004-11-30 15:53:18

Michel
Member
From: Belgium
Registered: 2004-07-31
Posts: 286

[updated] Seahorse

Heya,

I updated the seahorse-package in staging. Is this the right place to post it or is it better to contact the author?

PKGBUILD:

#Maintainer: Ben <contrasutra@myrealbox.com>
#Contributor: Michel Brabants <michel.linux@tiscali.be>

pkgname=seahorse
pkgver=0.7.5
pkgrel=1
pkgdesc="a gtk2 frontend to gpg"
url="http://www.seahorse.sourceforge.net"
#the dependency for nautilus (and gedit) can be omitted if built without them
#compiling with gedit gives an error message that it must be installed in .../usr/...
depends=('eel' 'libart-lgpl' 'gpgme>=1.0.0' 'gnupg>=1.2.0' 'gtk2' 'libgnomeui' 'libglade' 'nautilus')
source=(http://ftp.gnome.org/pub/GNOME/sources/seahorse/0.7/$pkgname-$pkgver.tar.gz 
        seahorse.install 
        Makefile-nautilus.patch)
md5sums=('f90a334d3fdecd7112f8aece586ca63d' '30efa97454dde839c35badd269a4ace6'
         'a70693cb4b6e932157275772759de476')
install="seahorse.install"

build() {
  cd $startdir/src/$pkgname-$pkgver
  #the patch is for don't letting the install-script run "update-mime-database" since that requires root-privileges
  patch -p1 ./plugins/nautilus/Makefile.in $startdir/Makefile-nautilus.patch
  ./configure --prefix=/opt/gnome --disable-schemas-install --disable-gedit
  make || return 1
  make DESTDIR=$startdir/pkg install
}

If you copy and paste seahorse.install and Makefile-nautilus.patch it is not guaranteed that the md5sums will match with these files. Therefore, I uploaded them to some space I have on a webserver. You can download them by clicking on the name of the files above their code.

seahorse.install:

schemas=(
  'opt/gnome/etc/gconf/schemas/seahorse.schemas'
)
post_install() {
  for schema in "${schemas[@]}" ; do
    GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source` opt/gnome/bin/gconftool-2 --makefile-install-rule "$schema" > /dev/null 2>&1
  done
  echo "updating scrollkeeper catalogue ..."
  scrollkeeper-update -p /var/lib/scrollkeeper > /dev/null 2>&1
  update-desktop-database > /dev/null 2>&1
}

post_upgrade() {
  post_install $1
}

pre_remove() {
  for schema in "${schemas[@]}" ; do
    GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source` opt/gnome/bin/gconftool-2 --makefile-uninstall-rule "$schema" > /dev/null 2>&1
  done
  echo "updating scrollkeeper catalogue ..."
  scrollkeeper-update -p /var/lib/scrollkeeper > /dev/null 2>&1
  update-desktop-database > /dev/null 2>&1
}


op=$1
shift

$op $*

Makefile-nautilus.patch:

--- ./Makefile.in       2004-11-02 18:32:13.000000000 +0100
+++ Makefile-new.in     2004-11-29 20:17:15.000000000 +0100
@@ -520,7 +520,7 @@


 install-data-local:
-       update-mime-database $(datadir)/mime/
+       #update-mime-database $(datadir)/mime/

 @INTLTOOL_DESKTOP_RULE@

Offline

#2 2004-11-30 16:01:38

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [updated] Seahorse

Michel wrote:

Heya,

I updated the seahorse-package in staging. Is this the right place to post it or is it better to contact the author?

It's better to contact the maintainer so that he updates his copy.

Offline

Board footer

Powered by FluxBB