You are not logged in.

#1 2015-11-06 22:04:09

Bl4ckb0ne
Member
Registered: 2014-12-26
Posts: 70

Writing a PKGBUILD, got trouble with the dependencies

Hi,

I'm currently writing a pkgbuild for nit, and I got some trouble with the dependancies.

pkgname=nit
pkgver=0.7.9
pkgrel=1
pkgdesc='Nit is an expressive language with a script-like syntax, a friendly type-system and aims at elegance, simplicity and intuitiveness.'
arch=('any')
url='http://nitlanguage.org/'
license=('apache')
# debian dep : sudo apt-get install build-essential ccache libgc-dev graphviz libunwind-dev pkg-config
depends=('gcc', 'ccache', 'gc', 'graphviz', 'libunwind', 'pkg-config')
makedepends=('git')
source=("git+https://github.com/nitlang/nit.git")
md5sums=('SKIP')

build() {
	cd "$srcdir"/nit
	make
}

package() {
	cd "$srcdir"/nit	
	make DESTDIR="$pkgdir/" install	
}

When I try to do a simple "makepkg", I got this

==> Making package: nit 0.7.9-1 (Fri Nov  6 17:02:01 EST 2015)
==> Checking runtime dependencies...
==> Missing dependencies:
  -> gcc,
  -> ccache,
  -> gc,
  -> graphviz,
  -> libunwind,
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.

But I got all the dependencies installed on my computer. And even if I try "makepkg -s"

==> Making package: nit 0.7.9-1 (Fri Nov  6 17:02:24 EST 2015)
==> Checking runtime dependencies...
==> Installing missing dependencies...
[sudo] password for simon: 
error: target not found: gcc,
error: target not found: ccache,
error: target not found: gc,
error: target not found: graphviz,
error: target not found: libunwind,
==> ERROR: 'pacman' failed to install missing dependencies.

IDK what's going on, but I know I got these packages installed on my computer.


Can somebody help me with this?

Thanks.

Offline

#2 2015-11-06 22:07:04

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Writing a PKGBUILD, got trouble with the dependencies

Arrays are space separated: remove the commas...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-11-06 23:40:53

Bl4ckb0ne
Member
Registered: 2014-12-26
Posts: 70

Re: Writing a PKGBUILD, got trouble with the dependencies

Oh my god whyyyyyyyyyyyyy
Thanks anyway, it works fine.

I got another question : is yaourt using automatically the -s argument to install any packages from aur?

Offline

#4 2015-11-06 23:54:54

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Writing a PKGBUILD, got trouble with the dependencies

No idea. Read the wiki pages on PKGBUILDs and creating packages. You should be building in a clean chroot not using a helper like Yaourt.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2016-01-25 14:09:55

kaldøran
Member
Registered: 2015-02-04
Posts: 17

Re: Writing a PKGBUILD, got trouble with the dependencies

Any update on this ? Are you going to put it on AUR ?
I'm intressted in that big_smile

Thanks

Offline

Board footer

Powered by FluxBB