You are not logged in.

#1 2012-03-01 22:02:38

theodore
Member
Registered: 2008-09-09
Posts: 151

help to create a pkgbuild for harpia

hi i want to create a pkgbuild for the harpia program http://s2i.das.ufsc.br/harpia/en/home.html
searching in the aur and in the net i couldn't find something
harpia exist for ubuntu and the .deb file is hosted here http://packages.ubuntu.com/oneiric/all/harpia
can someone help me create a working pkgbuild for arch through the .deb file

i tried to create a first approach by creating the following PKGBUILD:

pkgname=harpia
pkgver=1.1
pkgrel=1
pkgdesc="Image Processing/Computer Vision Automatic Prgm. Tool"
arch=('any')
url="http://s2i.das.ufsc.br/harpia/en/home.html"
license=('GPL2')
depends=('')
source=("http://archive.ubuntu.com/ubuntu/pool/universe/h/harpia/${pkgname}_${pkgver}-0ubuntu1.1_all.deb")
md5sums=('56c6cb146ea5652e41b77506ad8ec263')

build() {
        bsdtar -C "$pkgdir" -xvf data.tar.gz
}

however when i am running the program i am taking the following error:

Traceback (most recent call last):
  File "/usr/bin/harpia", line 32, in <module>
    from harpia import harpiagcfrontend
ImportError: No module named harpia

i guess that the problem might have to do with some dependencies or with the python library, can you provide me with some tips wink

thanks

Offline

#2 2012-03-01 22:30:09

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: help to create a pkgbuild for harpia

The dependencies are listed in the deb; you need to look inside the deb, get the dependencies, find their analogues in Arch, and add these analogues to the list of dependencies in the PKGBUILD.

To get you started, this is how you might find the dependencies:

ar xv harpia_1.1-0ubuntu1.1_all.deb control.tar.gz && tar xf control.tar.bz2 './control' && cat control | grep -i "^depends"

Offline

#3 2012-03-01 23:09:14

theodore
Member
Registered: 2008-09-09
Posts: 151

Re: help to create a pkgbuild for harpia

the dependencies according to http://packages.ubuntu.com/oneiric/all/harpia and from the control.tar.bz2 file are:

python (>= 2.5)
python-central (>= 0.6.11)
python-gobject
python-gnome2
python-glade2
python-4suite-xml
libcvaux-dev
libhighgui-dev
libcv-dev
libc6-dev
gcc

but except gcc, python and python-gobject i cannot find the other ones

Offline

#4 2012-03-01 23:18:21

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: help to create a pkgbuild for harpia

Well, I'm not going to tell you every little thing wink.

I found a likely candidate for python-gnome2 in pacman using a judicious choice of search terms. As for the rest, I suggest you go to the Debian or Ubuntu package lists. The Debian ones are easy to find in Google. These lists contain lots of information about what packages contain and what they provide and where the source code is from.

Do some detective work, you will figure it out.

Offline

#5 2012-03-01 23:43:19

theodore
Member
Registered: 2008-09-09
Posts: 151

Re: help to create a pkgbuild for harpia

thanks @/dev/zero i will have a look and i will give feedback wink

Offline

Board footer

Powered by FluxBB