You are not logged in.

#1 2010-01-25 23:21:50

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

[SOLVED] help with first PKGBUILD

I recently gave making a package a shot, starting with a library. I read through the wiki, and I have a question. I might of missed it, but here it goes:
My package is http://aur.archlinux.org/packages.php?ID=33957
It all installs fine, but I need to run it as root and use the --asroot flag. Is there something I can add so I don't have to do that?

Last edited by cesura (2010-01-26 01:21:53)

Offline

#2 2010-01-25 23:31:56

res
Member
Registered: 2010-01-14
Posts: 55

Re: [SOLVED] help with first PKGBUILD

--prefix=$pkgdir/usr

e: equal sign fail

And most likely not during configure, but DESTDIR with the make install:

make DESTDIR=$pkgdir install

Last edited by res (2010-01-25 23:40:03)

Offline

#3 2010-01-26 00:40:20

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: [SOLVED] help with first PKGBUILD

res wrote:

--prefix=$pkgdir/usr

e: equal sign fail

And most likely not during configure, but DESTDIR with the make install:

make DESTDIR=$pkgdir install

What do you mean? Should I make a pkgdir variable? Will this make it so I don't have to use --asroot?

Offline

#4 2010-01-26 01:04:28

some-guy94
Member
Registered: 2009-08-15
Posts: 360

Re: [SOLVED] help with first PKGBUILD

All you need to do is run

make DESTDIR=$pkgdir install

instead of

make install

so it is built into a package.

As it is it is actually installing it directly onto the system, not through the package.

Offline

#5 2010-01-26 01:11:45

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: [SOLVED] help with first PKGBUILD

some-guy94 wrote:

All you need to do is run

make DESTDIR=$pkgdir install

instead of

make install

so it is built into a package.

As it is it is actually installing it directly onto the system, not through the package.

Ahh I see so they can later run "pacman -U package.pkg.tar.gz". Thank you big_smile

Offline

Board footer

Powered by FluxBB