You are not logged in.

#1 2009-04-17 03:41:55

Spelchek
Member
Registered: 2009-01-27
Posts: 22

Making package from source

I just created a working build of firefox 3.0.8 from source without using abs. I am wondering how I would be able to turn my build into a package that I can install via pacman.
I don't really know what information I need to give but any help would be appriciated.

Offline

#2 2009-04-17 03:53:06

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,222
Website

Re: Making package from source

Without a PKGFILE for makepkg to use, it kinda difficult...

You'll need to manually tar up every file belonging to the installation, and then manually create a .PKGINFO file to add to the tarball. Extract the PKGINFO from an existing package to see the format...

May I ask why you made your own without using the ABS/AUR? And why you now what to package it?

Offline

#3 2009-04-17 03:59:16

Spelchek
Member
Registered: 2009-01-27
Posts: 22

Re: Making package from source

I'm running arch for fun and expirience, so I thought that compiling something the normal way would be a good thing to learn.
I was overlooking things as usual, but I have run into a new problem. When I run the "make package" command it creates a bzip and not the gzip as required by pacman.

Offline

#4 2009-04-17 04:11:23

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: Making package from source

The make package command? Do you mean makepkg? If you mean literally "make package", Firefox probably has a make routine to make a basic tar of its compiled binaries, and that's it.

Last edited by Ranguvar (2009-04-17 04:12:06)

Offline

#5 2009-04-17 07:36:26

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: Making package from source

This example does the job for both Firefox and Thunderbird to /usr/local smile ...

build() {
  cd ${srcdir}/${pkgname}

  mkdir -p ${pkgdir}/usr/local/{bin,share}
  mv ${srcdir}/${pkgname} ${pkgdir}/usr/local/share/
  ln -s /usr/local/share/${pkgname}/${pkgname} ${pkgdir}/usr/local/bin/${pkgname}
}

You will need to extract the contents of the bz2 package to the appropriate build directory, of course.

Last edited by adamlau (2009-04-17 07:43:25)


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#6 2009-04-17 07:44:23

Stythys
Member
From: SF Bay Area
Registered: 2008-05-18
Posts: 878
Website

Re: Making package from source

Spelchek wrote:

I'm running arch for fun and expirience, so I thought that compiling something the normal way would be a good thing to learn.
I was overlooking things as usual, but I have run into a new problem. When I run the "make package" command it creates a bzip and not the gzip as required by pacman.

but...abs IS the normal way. It just keeps track of all the files installed and makes the package for pacman...., which, is exactly what you're asking how to do.

If you want to compile a custom firefox for yourself, do it in the form of a PKGBUILD


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol

Offline

Board footer

Powered by FluxBB