You are not logged in.

#1 2007-11-08 17:54:05

ReaphSharc
Member
From: the Netherlands
Registered: 2007-11-05
Posts: 138
Website

Error creating PKGBUILD for lsb-release

I'm running into a weird (to me) error while making my first PKGBUILD (and running makepkg).

 $ makepkg
............... *snip* ...............
==> Starting build()...
/usr/bin/makepkg: line 917: build: command not found
==> ERROR: Build Failed.  Aborting...

The PKGBUILD code:

pkgname=lsb-release
pkgver=1.4
pkgrel=1
pkgdesc="LSB version query program."
arch=('i686')
url="http://www.linuxbase.org/"
license=('GPL-2')
groups=
provides=
depends=
makedepends=('perl')
source=(http://superb-east.dl.sourceforge.net/sourceforge/lsb/$pkgname-$pkgver.tar.gz)
md5sums=('30537ef5a01e0ca94b7b8eb6a36bb1e4')

build() {
  cd "$startdir/$pkgname-$pkgver"
  mkdir $startdir/pkg/etc/
  cat > "$startdir/pkg/etc/lsb-release" <<- EOF
        DISTRIB_ID="Arch"
  EOF
  make || return 1
  make DESTDIR="$startdir/pkg" install
}

It's probably a silly typo, but I can't find it.


Do you want a Bubble Icon? Feel free to submit your requests or personal creations to be included in future releases.
I'm 100% Linux!

Offline

#2 2007-11-08 20:58:08

hacosta
Member
From: Mexico
Registered: 2006-10-22
Posts: 423

Re: Error creating PKGBUILD for lsb-release

change the cat line for this
echo DISTRIB_ID="Arch" > "$startdir/pkg/etc/lsb-release"

Last edited by hacosta (2007-11-08 20:58:34)

Offline

#3 2007-11-08 22:49:26

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 794
Website

Re: Error creating PKGBUILD for lsb-release

You also don't need the quotes, bash knows how to interpolate it's variables.

Offline

#4 2007-11-09 07:23:05

ReaphSharc
Member
From: the Netherlands
Registered: 2007-11-05
Posts: 138
Website

Re: Error creating PKGBUILD for lsb-release

Thanks! That helped me along enormously!


Do you want a Bubble Icon? Feel free to submit your requests or personal creations to be included in future releases.
I'm 100% Linux!

Offline

Board footer

Powered by FluxBB