You are not logged in.
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
Thx in advance,
Bernhard
Offline
Post the PKGBUILD you made and the errors you were getting.
Offline
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
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
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
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
many thanks. this is working perfectly!!
Offline
Thanks snowman.
Offline