You are not logged in.

#1 2009-11-24 13:28:55

hit
Member
From: Estonia
Registered: 2009-01-14
Posts: 79

Help with packaging

Hi,
first of all I want to make clear that these are my first packages in aur, so don't kill me smile They're for Estonian ID-cards to login different websites and sign documents digitally. I can build everything locally, but something goes wrong with yaourt.

Everything is OK with qesteidutil.
Everything seems also be OK with qdigidoc, but one of it's dependency is failing to install - libdigidoc (not libdigidocpp, which is fine). Am I missing something and maybe can someone point me to right directions?

Offline

#2 2009-11-24 14:18:11

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Help with packaging

What is going wrong? We need more information to help you, e.g. error messages.

Offline

#3 2009-11-24 15:23:32

hit
Member
From: Estonia
Registered: 2009-01-14
Posts: 79

Re: Help with packaging

Sorry, forgot that.

==> Starting make...
mkdir: kataloogi ``build'' ei õnnestu luua: File exists**
CMake Error: The source directory "/tmp/yaourt-tmp-hit/aur-libdigidoc-svn/libdigidoc-svn/src" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
make: *** No targets specified and no makefile found.  Stop.
==> ERROR: Build Failed.
    Aborting...
Error: Makepkg was unable to build libdigidoc-svn package.

[hit@sahver ~]$

**mkdir: can't make dir ``build'': File exists

Offline

#4 2009-11-25 04:22:31

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: Help with packaging

Works OK for me.  BTW, builds fine on x86_64.


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#5 2009-11-25 08:51:43

hit
Member
From: Estonia
Registered: 2009-01-14
Posts: 79

Re: Help with packaging

Alright, maybe it was just my problem. I have one more little question, which answer I didn't find anywhere. How should I make a package in "arch way", when I only need to put some files to /usr/include? Just `cp` them in PGKBUILD? Or something in .install?

Offline

#6 2009-11-25 09:05:03

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,673
Website

Re: Help with packaging

Almost nothing should happen in the .install file.   So the solution is to "install" (not "cp") them in the PKGBUILD.

Offline

#7 2009-11-26 10:47:11

hit
Member
From: Estonia
Registered: 2009-01-14
Posts: 79

Re: Help with packaging

I see, so "install" acts the same way as "cp", right? Sorry, I didn't find any particular documentation about this, but found some packages from aur, which use "install". I think I found my answer, thank you.

Offline

#8 2009-11-26 12:44:42

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Help with packaging

Using install you can set permissions on the fly. Other than  that it is similar to cp. "man install" should fulfil basic documentation needs.

Offline

#9 2009-11-26 20:15:34

hit
Member
From: Estonia
Registered: 2009-01-14
Posts: 79

Re: Help with packaging

This cleared things up a lot, thank you all four your help!

Offline

#10 2009-11-27 10:26:59

hit
Member
From: Estonia
Registered: 2009-01-14
Posts: 79

Re: Help with packaging

Still one issue: I can build package locally and install it with -U, but something still isn't right with yaourt.

==> Starting build()...
install: cannot make regular file `/usr/bin/xsd': Permission denied
==> ERROR: Build Failed.
    Aborting...
Error: Makepkg was unable to build xsd package.

Heres the PKGBUILD:

# Maintainer: Rene Pärts <rene87@hot.ee>
pkgname=xsd
pkgver=3.1.0
pkgrel=2
pkgdesc="W3C XML Schema to C++ translator library"
arch=('i686')
url="http://www.codesynthesis.com/projects/xsd/"
license=('GPL')
depends=('glibc')
source=(http://www.codesynthesis.com/download/xsd/3.1/linux-gnu/$arch/$pkgname-$pkgver-$arch-linux-gnu.tar.bz2)
md5sums=('6414fbecd455c146a424cba1269d1f37')

build() {
    cd $srcdir/$pkgname-$pkgver-$arch-linux-gnu/
    install -dm644 libxsd/xsd /usr/include || return 1 # here i need to install a folder, is there something like "-r"?
    install -Dm4755 bin/xsd $pkgdir/usr/bin/xsd || return 1
}

Last edited by hit (2009-11-27 15:34:44)

Offline

Board footer

Powered by FluxBB