You are not logged in.
Pages: 1
So, I am trying to install something for my new Palm Pre, and a dependency for this program is novacom.
They provided this .deb:
https://cdn.downloads.palm.com/sdkdownl … 9_i386.deb
I ran deb2targz and then tried to make a PKGBUILD but I was unsuccessful. I just want to make sure I am on the right track before spending too much time on this.
Offline
Can you post your progress so far?
Offline
Sure basically I copied an example pkgbuild from the wiki and added changed it a bit:
# Contributor: Phil
pkgname=novacom
pkgver=1
pkgrel=1
pkgdesc="novacom"
arch=(i686)
url=""
license=('GPL')
groups=()
depends=()
makedepends=()
provides=()
conflicts=()
replaces=()
backup=()
install=
source=($pkgname-$pkgver.tar.gz)
noextract=()
md5sums=('cba28a12c414ea28a944a145c47b3ee2')
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr
make || return 1
make DESTDIR="$pkgdir/" install
}I renamed my .tar.gz file that I got from deb2targz "novacom-1.tar.gz"
Now the build function didn't work and I remember reading on another Wiki that you need to know how the package needs to be built, before doing the pkgbuild.
The error I get is that is tries to cd to /src/novacom-1/ but that directory is not created or have anything in it.
Last edited by Dethredic (2009-09-28 00:05:10)
Offline
It looks like you're trying to get the pkgbuild to compile things, but my understanding of deb2targz is it just makes a *.tar.gz with the already compiled files. You need to tell it to extract your novacom-1.tar.gz and get the contents into $pkgdir to be made into an Arch package.
You could also list the .deb as the source and have the deb2targz be part of the build function.
Offline
The community/gnome-python-docs package is built from a .deb (two actually) using deb2targz - have a look at its PKGBUILD for guidance. FYI there is one error in it - deb2targz should be a makedepend, not a depend.
Offline
I now have this:
pkgname=novacom
pkgver=0.3
pkgrel=1
pkgdesc="novacom"
arch=(i686)
url=""
license=('unknown')
depends=('deb2targz')
options=('')
source=(novacom-0.3.deb)
md5sums=('3a1cd798122383a8cc8ca6f80ff0f6f9')
build() {
cd $startdir/src
deb2targz $pkgname-$pkgver.deb
mkdir -p $startdir/pkg/usr/share/
# Uncompressing the tar.gz files
tar -zxf $pkgname-$pkgver.tar.gz
}That seemed to work. Can someone make sure it looks right and if so I will add it to AUR
EDIT: I would need to fix the source.
Last edited by Dethredic (2009-09-03 21:54:35)
Offline
You've created the usr/share dir, and you've extracted the tar.gz, and... that's it. You haven't installed any files in the package root i.e. in $startdir/pkg (btw, it's called $pkgdir these days). Read the gnome-python-docs PKGBUILD again, and maybe a few other PKGBUILDS, and some man and wiki pages.
Offline
Ok I added this to the bottom but it didn't work:
cp $startdir/src/etc/event.d/* $startdir/pkg/etc/event.d
cp $startdir/src/opt/Palm/novacom/* $startdir/pkg/opt/Palm/novacom
cp $startdir/src/usr/local/bin/* $startdir/pkg/usr/local/bin
cp $startdir/src/usr/share/doc/palm-novacom/* $startdir/pkg/usr/share/doc/palm-novacom
I can just run the files in opt/Palm/novacom and it seems to work, so I am assuming installing the package just copies these files to /usr/sbin or something like that.
Offline
Just a note: deb files are normal "ar" files which can be extracted with "ar x filename.deb", then extracting data.tar.gz. Thus eliminating the deb2targz dependence (ar is part of binutils which should be ubiquitous).
Offline
Ok I added this to the bottom but it didn't work:
cp $startdir/src/etc/event.d/* $startdir/pkg/etc/event.d
cp $startdir/src/opt/Palm/novacom/* $startdir/pkg/opt/Palm/novacom
cp $startdir/src/usr/local/bin/* $startdir/pkg/usr/local/bin
cp $startdir/src/usr/share/doc/palm-novacom/* $startdir/pkg/usr/share/doc/palm-novacomI can just run the files in opt/Palm/novacom and it seems to work, so I am assuming installing the package just copies these files to /usr/sbin or something like that.
You need to use the install command... I took the following from the bin32-wine aur PKGBUILD....
install -Dm755 "$srcdir/wine.sh" "$pkgdir/etc/profile.d/wine.sh" || return 1
I do no thave much experience with it... but the 755 is the permissions not sure what the other flags do... hopefully someone more knowledgable can expound further.
Offline
If you're using cp, you need to create the dirs before copying files to them. Also, Arch doesn't use /usr/local.
More generally, it would be a good idea to familiarise yourself more thoroughly with the package-making process, as I already suggested.
Offline
Pages: 1