You are not logged in.

#1 2005-05-06 17:56:45

iKevin
Member
From: Ann Arbor, MI
Registered: 2003-07-20
Posts: 132

Help with my first PKGBUILD script [solved]

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

#2 2005-05-06 18:26:02

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: Help with my first PKGBUILD script [solved]

actually, the file doesn't exist (tried just by clicking the link..) on that mirror

you should just use another mirror big_smile


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

#3 2005-05-06 18:29:09

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

Re: Help with my first PKGBUILD script [solved]

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

#4 2005-05-06 18:52:18

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: Help with my first PKGBUILD script [solved]

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

#5 2005-05-06 19:14:17

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

Re: Help with my first PKGBUILD script [solved]

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

#6 2005-05-06 19:19:12

iKevin
Member
From: Ann Arbor, MI
Registered: 2003-07-20
Posts: 132

Re: Help with my first PKGBUILD script [solved]

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

#7 2005-05-06 19:25:00

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Help with my first PKGBUILD script [solved]

Snowman wrote:

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

#8 2005-05-06 19:41:41

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

Re: Help with my first PKGBUILD script [solved]

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

#9 2005-05-06 19:52:38

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Help with my first PKGBUILD script [solved]

Snowman wrote:

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

#10 2005-05-06 21:32:15

iKevin
Member
From: Ann Arbor, MI
Registered: 2003-07-20
Posts: 132

Re: Help with my first PKGBUILD script [solved]

Thanks for all of the replies.  I think this means that I won't be able to compile fpm.

Thanks again
Kevin

Offline

#11 2005-05-07 07:21:27

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: Help with my first PKGBUILD script [solved]

Don't know if this helps take a look in autogen.sh ;-)

O & read INSTALL file ....


Mr Green

Offline

#12 2005-05-07 22:08:48

iKevin
Member
From: Ann Arbor, MI
Registered: 2003-07-20
Posts: 132

Re: Help with my first PKGBUILD script [solved]

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

#13 2005-05-08 00:36:42

iKevin
Member
From: Ann Arbor, MI
Registered: 2003-07-20
Posts: 132

Re: Help with my first PKGBUILD script [solved]

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

#14 2005-05-08 07:29:14

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: Help with my first PKGBUILD script [solved]

Welcome to Arch ..... tongue

Why not add PKGBUILD to AUR  wink ....


Mr Green

Offline

#15 2005-05-08 11:53:32

iKevin
Member
From: Ann Arbor, MI
Registered: 2003-07-20
Posts: 132

Re: Help with my first PKGBUILD script [solved]

I know there must be an FAQ but what is AUR?

Thanks
Kev

Offline

#16 2005-05-08 11:56:16

iKevin
Member
From: Ann Arbor, MI
Registered: 2003-07-20
Posts: 132

Re: Help with my first PKGBUILD script [solved]

No need to reply.  I figured it out.

Thanks

Offline

#17 2005-05-08 13:28:01

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: Help with my first PKGBUILD script [solved]


Mr Green

Offline

Board footer

Powered by FluxBB