You are not logged in.

#1 2011-11-15 20:21:10

clmates
Member
From: A Coruña - España
Registered: 2009-04-25
Posts: 79

help making a PKGBUILD

Hi to all

I've never done a pkgbuild, but have modified some (ie nvidia drivers)to be able to compile new or beta versions, etc)

Now I want to make a PKGBUILD for a java software (openproject) that is distributed a a .tar.gz file and is not necessary to compile it, only untar and copy to specific folders

I want to build a pkgbuild that makes the following

1. download the source tar.gz from sourceforge (I have already this and is working)

2. create a install script "on the fly" to be included in the package that makes the following

2.1 create /usr/share/openproj (this is giving an error of not enough permissions)
2.2. uncompress the tar.gz to /usr/share/openproj
2.3 copy from /usr/share/openproj/openproj.sh to /usr/local/bin/


is possible to make this?

how?

many thanks


-

Arch64 - Acer AX3950 - i5-650 3.2 GHz - 8 GB RAM - Nvidia GeForce 320 1 GB Ram
Arch32 - Samsung NC10 - 2 GB Ram

Offline

#2 2011-11-15 20:43:02

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: help making a PKGBUILD

What's wrong with https://aur.archlinux.org/packages.php?ID=12418? What do you want to do differently?

Offline

#3 2011-11-15 20:45:48

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

Re: help making a PKGBUILD

Have you looked at similar PKGBUILDs in AUR? That would be the most straightforward approach...

Something like this? https://aur.archlinux.org/packages.php?ID=7885

# edit: OK, karol, I give up smile

Last edited by jasonwryan (2011-11-15 20:46:38)


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2011-11-15 20:54:50

rene
Member
Registered: 2010-08-18
Posts: 36

Re: help making a PKGBUILD

mkdir -p $pkgdir/usr/share/openproj

or "install -d" if you prefer and so on. When building, $pkgdir is inside the build directory and when installing, it's just the root directory.

(next step: you can generate the md5sums by writing the PKGBUILD with a correct source= line and then building it once with "makepkg -g")

Last edited by rene (2011-11-15 20:57:25)

Offline

#5 2011-11-15 21:05:03

clmates
Member
From: A Coruña - España
Registered: 2009-04-25
Posts: 79

Re: help making a PKGBUILD

Hi.


really I looked for openproject in AUR and didnt found it hmm  but didn't look for openproj sad

well I had almost done (more simple) the same than that pkgbuild, but missed the -p flag

now learned a bit more of Arch

Many thanks


-

Arch64 - Acer AX3950 - i5-650 3.2 GHz - 8 GB RAM - Nvidia GeForce 320 1 GB Ram
Arch32 - Samsung NC10 - 2 GB Ram

Offline

#6 2011-11-15 21:10:10

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: help making a PKGBUILD

clmates wrote:

really I looked for openproject in AUR and didnt found it hmm  but didn't look for openproj sad

That's what I thought :-)

openproject seems to be an unrelated project: http://openproject.sourceforge.net/index2.html

Offline

#7 2011-11-17 17:10:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: help making a PKGBUILD

I think you can mark the thread as solved :-)

Offline

Board footer

Powered by FluxBB