You are not logged in.

#1 2010-03-23 17:30:17

Anniekin
Member
Registered: 2010-03-23
Posts: 55

How to package after compiling

Greetings,

I would like to ask how does one package something after compiling to enable pacman to keep track of it?

For example one would use rpmbuild in someother distributions to create a package.

The rather extensive info over at the wiki seems to cover ways to automate the entire build process, which is all very overwhelming for a traditional casual user, i.e. './configure, make, install'.

I would just like a simple way to keep pacman updated about my system without learning an entire new compile procedure.

Offline

#2 2010-03-23 17:33:11

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: How to package after compiling

Look into abs and makepkg.

And I trust you read the Beginner's Guide; make no mistake - being fluent in Linux doesn't mean you don't need to learn about Arch. A new distro means new tools wink.

Welcome to the forums btw.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2010-03-23 17:38:45

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: How to package after compiling

Automating the whole build process is the right way to use Arch's tools to package something. It can be very easy. Check some sample PKGBUILDs. An example of a very straightforward on would be the "lzo2" build from core: http://repos.archlinux.org/wsvn/package … k/PKGBUILD

Offline

#4 2010-03-23 19:03:32

Anniekin
Member
Registered: 2010-03-23
Posts: 55

Re: How to package after compiling

Thanks for the link and the welcome.

But this method will not install Skype for example.

What is the simplest way to package a directory in this case?

Last edited by Anniekin (2010-03-23 19:05:17)

Offline

#5 2010-03-23 19:27:19

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: How to package after compiling

Off the top of my head, tar the directory and in the PKGBUILD make it the source. The build function of the PKGBUILD will use install to copy the files from the src to the pkg dir. Use the PKGBUILD of Skype from AUR to understand the details.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#6 2010-03-23 19:31:57

evr
Arch Linux f@h Team Member
Registered: 2009-01-23
Posts: 554

Re: How to package after compiling

are you trying to install skype, or was that just an example?  Skype is already in the community repo, are you having problems with that version?  If you're trying to design a PKGBUILD for software 'like' skype, you can check out it's PKGBUILD to see how it installs things.

Offline

#7 2010-03-23 20:06:48

Anniekin
Member
Registered: 2010-03-23
Posts: 55

Re: How to package after compiling

Oh I should have mentioned re:Skype that i'm using 64

but tar'ing the directory sounds like a good lead

Offline

#8 2010-03-23 20:38:17

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: How to package after compiling

There's a bin32-skype package already.

Offline

#9 2010-03-23 21:15:20

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: How to package after compiling

Daenyth wrote:

There's a bin32-skype package already.

http://aur.archlinux.org/packages.php?ID=7914

Download and extract the tarball, makepkg and you're done (if you have the dependencies).

Offline

#10 2010-03-23 22:21:53

Anniekin
Member
Registered: 2010-03-23
Posts: 55

Re: How to package after compiling

Welcome to Skype call testing service!

Offline

#11 2010-03-24 13:34:18

g2g591
Member
Registered: 2007-12-24
Posts: 54

Re: How to package after compiling

Surgat_ wrote:
Daenyth wrote:

There's a bin32-skype package already.

http://aur.archlinux.org/packages.php?ID=7914

Download and extract the tarball, makepkg and you're done (if you have the dependencies).

actually that would be makepkg -is (that would install the dependencies and install the built package when done, as opposed to just build the package)

Offline

Board footer

Powered by FluxBB