You are not logged in.
Hi There
I am trying to write my first PKGBUILD script and I am landing in a bit of trouble. The script is short and is:
#Contributor: iKevin <kellwood-at-ameritech.net>
pkgname=fpm
pkgver=0.60
pkgrel=1
pkgdesc="A password manager for gnome"
url="http://fpm.sourceforge.net"
license="GPL"
depends=('xorg' 'gtk' 'glibc' 'libgnome' 'libxml2' 'glib')
source=(http://heanet.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=(be7655d300c306c8f962f6aad0a60cc5)
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
mkdir -p $startdir/pkg/usr/bin
make prefix=$startdir/pkg/usr install
}
I haven't reach the point where it compiles. It failes to download the file. Oddly, when I type:
it downloads fine. When running makepkg, the contents of ./src/fpm-0.60.tar.gz is some kind of web page.
I have eyeballed this PKGBUILD script for a while and I can't see any problems. Is there something special about sourceforge files? I feel that I must have a typo because makepkg is using wget, which works by hand.
Thanks
Kev
Offline
actually, the file doesn't exist (tried just by clicking the link..) on that mirror
you should just use another mirror
http://www.linuxportalen.com -> Linux Help portal for Linux and ArchLinux (in swedish)
Dell Inspiron 8500
Kernel 2.6.14-archck1 (selfcompiled)
Enlightenment 17
Offline
Try using: http://dl.sourceforge.net/sourceforge/$ … ver.tar.gz instead. It will automatically select a mirror.
However the package doesn't build. The configure script can't find gnome-config. I don't have time to look into it further...
Offline
Source line
source=(http://dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
Guess its looking for Gnome
checking for gnomeConf.sh file in /usr/lib... not found
configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install
make: *** No targets specified and no makefile found. Stop.
[/code]
Mr Green
Offline
gnomeConf.sh is for gnome 1. It doesn't find:
checking for gnome-config... no
I have it (unless it's something else) : /opt/gnome/include/libgnome-2.0/libgnome/gnome-config.h
I've tried using configure with:
--with-gnome-includes=/opt/gnome/include/libgnome-2.0/libgnome --with-gnome-includes=/opt/gnome/include --includedir=/opt/gnome/include/libgnome-2.0/libgnome
but it doesn't work.
Offline
That is odd. I just tried the wget command hear at work and it correctly got the file. I was also able to use
to fetch the file.
Anyways, thanks for the replies and I will try to tinker with the source when I get home.
All the best
Kevin
Offline
gnomeConf.sh is for gnome 1. It doesn't find:
checking for gnome-config... no
I have it (unless it's something else) : /opt/gnome/include/libgnome-2.0/libgnome/gnome-config.h
It's not looking for the header file, it's looking for the binary (gnome-config, ala pkg-config) - autotool'ed configure messages are different for headers (checking for include gnome-config.h.....found <- something like that)
Offline
I don't have any gnome-config executables on my system. I think the utility is now called /opt/gnome/bin/gconftool-2 (in the gconf pkg). I'm not a Gnome expert. Maybe the configure script needs to be patched.
Offline
I don't have any gnome-config executables on my system. I think the utility is now called /opt/gnome/bin/gconftool-2 (in the gconf pkg). I'm not a Gnome expert. Maybe the configure script needs to be patched.
naw, gnome-config is used for build parameters (gnome-config --cflags) - try mozilla-config or firefox-config (dunno which it is) with --cflags to see what the output should look like
after some googling, gnome-config was phased out in gnome2 - so it appears this program requires gnome 1.X...
edit: latest release of this package is "Dec 26, 2003 18:51" - it appears to be dead, and won't work with gnome2 (maybe some real heavy patching/sedding - gnome-config can probably be replaced by pkg-config, assuming the proper .pc files)
Offline
Thanks for all of the replies. I think this means that I won't be able to compile fpm.
Thanks again
Kevin
Offline
Don't know if this helps take a look in autogen.sh ;-)
O & read INSTALL file ....
Mr Green
Offline
I have an indirect solution. There is a package called kedpm (python based), which can read and write files generated by fpm. It looks like it should be easy to install in archlinux.
Thanks
Kevin
Offline
Well,
I installed kedpm with my first working PKGBUILD script. I was able to import my "fpm" password file. Once I get my gnucash stuff transfered into grisbi, I will be able to switch my main machine completely to archlinux.
I know it is trivial for you guys, but here is my script -- it might save you some typing.
Kev
pkgname=kedpm
pkgver=0.4.0
pkgrel=1
pkgdesc="Ked Password Manager helps to manage large amounts of passwords and related information"
url="http://kedpm.sourceforge.net/"
depends=(python pygtk pycrypto)
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('6b83a646873f8ea00af9c6403aa259bc')
build() {
cd $startdir
mkdir -p pkg/usr
cd $startdir/src/$pkgname-$pkgver
python setup.py install --prefix=$startdir/pkg/usr
}
Offline
Welcome to Arch .....
Why not add PKGBUILD to AUR ....
Mr Green
Offline
I know there must be an FAQ but what is AUR?
Thanks
Kev
Offline
No need to reply. I figured it out.
Thanks
Offline
Offline