You are not logged in.

#1 2007-03-09 12:14:01

dw
Member
From: Vienna, Austria
Registered: 2006-11-25
Posts: 160

[request] referencer 1.0.2

I'd like to request a pkgbuild for referencer.

According to the author's homepage, referencer is

A document organiser and bibliography manager for Gnome

supporting automatic metadata retrieval, smart web links, importing from BibTeX, reference manager and endnote and tagging.

I've tried to create my first pkgbuild on referencer, but I failed. So it would be nice if anyone could either provide a pkgbuild for referencer or guide me through the process of creating it smile

Thx in advance,
Bernhard

Offline

#2 2007-03-09 20:12:41

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

Re: [request] referencer 1.0.2

Post the PKGBUILD you made and the errors you were getting.

Offline

#3 2007-03-09 22:24:11

badger
Member
From: Melb
Registered: 2004-07-21
Posts: 76

Re: [request] referencer 1.0.2

Here's a PKGBUILD that seems to work for me- no guarantees it won't kick your cat and melt your PC.
[strikethrough]Note that as a clunky hack I rm the mimetype files- otherwise they may overwrite your existing ones. Is there a way to merge them?[/strikethrough]

Edit: Thanks snowman, change to /opt/gnome, will look into this mime thing
Edit2: I've just noticed, when I disable the mime database update I get an error when make installing, leaving a pkg tar.gz missing much of the app. Don't know what I'm doing wrong. Error is:

make  install-data-hook
make[3]: Entering directory `/var/abs/local/referencer/src/referencer-1.0.2/data'
make[3]: *** No rule to make target `install-data-hook'.  Stop.
make[3]: Leaving directory `/var/abs/local/referencer/src/referencer-1.0.2/data'
make[2]: *** [install-data-am] Error 2
make[2]: Leaving directory `/var/abs/local/referencer/src/referencer-1.0.2/data'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/var/abs/local/referencer/src/referencer-1.0.2/data'
make: *** [install-recursive] Error 1

PKGBUILD:

pkgname=referencer
pkgver=1.0.2
pkgrel=1
url="http://icculus.org/referencer/"
depends=(poppler gtkmm libgnomeuimm gnome-vfsmm libglademm gconfmm boost libxml2)
source=(http://icculus.org/referencer/downloads/$pkgname-$pkgver.tar.gz)
install=referencer.install
md5sums=('d6eb119810c3884b269ecc708ec2a170')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/opt/gnome --disable-update-mime-database
  make || return 1
  make DESTDIR=$startdir/pkg install
}

referencer.install:

post_install() {
  update-mime-database opt/gnome/share/mime
}

post_upgrade() {
  post_install $1
}

post_remove() {
  update-mime-database opt/gnome/share/mime
}

op=$1
shift

$op $*

cheers

Last edited by badger (2007-03-10 00:37:27)

Offline

#4 2007-03-09 22:42:29

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

Re: [request] referencer 1.0.2

As its a gnome app, it should go in /opt/gnome so you should use:
./configure --prefix=/opt/gnome

For the mimtype, I'm not too sure about it. If it's what I think, you'll need to pass an option to the configure script so they don't get  installed and use a .install file to update the mime database.

Offline

#5 2007-03-10 06:15:55

dw
Member
From: Vienna, Austria
Registered: 2006-11-25
Posts: 160

Re: [request] referencer 1.0.2

Wow guys. Thanks for your work!

I think that the perlxml dependancy in missing the pkgbuild. It should read

depends=(poppler gtkmm libgnomeuimm gnome-vfsmm libglademm gconfmm boost libxml

And when I run makepkg, i get the following errors as well

make  install-data-hook
make[3]: Entering directory `/var/abs/local/src/referencer-1.0.2/data'
make[3]: *** No rule to make target `install-data-hook'.  Stop.
make[3]: Leaving directory `/var/abs/local/src/referencer-1.0.2/data'
make[2]: *** [install-data-am] Error 2
make[2]: Leaving directory `/var/abs/local/src/referencer-1.0.2/data'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/var/abs/local/src/referencer-1.0.2/data'
make: *** [install-recursive] Error 1
==> ERROR: Build Failed.  Aborting...

The question I have is, when the functions in referencer.install are called from the pkgbuild. Is it enough to have the line

install=referencer.install

in the pkgbuild?

Thanks again for your help!

Bernhard

Offline

#6 2007-03-10 07:27:06

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

Re: [request] referencer 1.0.2

dw wrote:

The question I have is, when the functions in referencer.install are called from the pkgbuild. Is it enough to have the line

install=referencer.install

in the pkgbuild?

Yes.

Here a working PKGBUILD.

pkgname=referencer
pkgver=1.0.2
pkgrel=1
pkgdesc="An application to organise documents or references, and ultimately generate a BibTeX bibliography file."
arch=('i686')
url="http://icculus.org/referencer/"
license=('GPL')
depends=(poppler libgnomeuimm boost)
install=referencer.install
source=(http://icculus.org/referencer/downloads/$pkgname-$pkgver.tar.gz)
md5sums=('d6eb119810c3884b269ecc708ec2a170')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/opt/gnome --disable-update-mime-database
  sed -i 's|$(MAKE) $(AM_MAKEFLAGS) install-data-hook||' data/Makefile
  make || return 1
  make DESTDIR=$startdir/pkg install
}
post_install() {
  update-mime-database opt/gnome/share/mime > /dev/null 2>&1
}

post_upgrade() {
  post_install $1
}

post_remove() {
  post_install $1
}

op=$1
shift

$op $*

Offline

#7 2007-03-10 13:02:14

dw
Member
From: Vienna, Austria
Registered: 2006-11-25
Posts: 160

Re: [request] referencer 1.0.2

many thanks. this is working perfectly!!

Offline

#8 2007-03-11 00:14:02

badger
Member
From: Melb
Registered: 2004-07-21
Posts: 76

Re: [request] referencer 1.0.2

Thanks snowman.

Offline

Board footer

Powered by FluxBB