You are not logged in.

#1 2003-04-17 08:09:15

rasat
Forum Fellow
From: Finland
Registered: 2002-12-27
Posts: 2,295
Website

AL package from binary?

How to make an AL package from binary files? The folders and files are compressed into one tarball (hwd-0.1.tar.gz) on /home/rasat. Do I use PKGBUILD file? If so, what's the script..... the source and build ()?
The main point is to install and also be able to remove with pacman.


Markku

Offline

#2 2003-04-20 19:26:57

dariball
Member
From: Germany - Frankfurt
Registered: 2002-10-20
Posts: 118
Website

Re: AL package from binary?

so would do it like this :

- write your PKGBUILD as usual and as source=() choose the binary url

- how your build() should look like is depending on the tar.gz content, in general i would first make the necessary dirs in $startdir/pkg ( like usr/bin etc... )  and then cp the files from $startdir/src into the right $startdir/pkg directory as u need it.
(it will maybe take some hand-work but normally this is not that hard)

- then build it with makepkg and install with pacman -A

greetz dariball


nothing,
maybe I have a perfect signature _someday_

Offline

#3 2003-04-21 18:35:52

rasat
Forum Fellow
From: Finland
Registered: 2002-12-27
Posts: 2,295
Website

Re: AL package from binary?

I found an easier way by checking the scripts of /usr/bin/makepkg. Also I took a look what's the difference between a standard tar.gz tarball and pkg.tar.gz pacman is using. In the root of pkg.tar.gz is .PKGINFO file (hidden file). Depending on the package, this is the info:
# Generated by makepkg 2.4.1
# Sat Apr 19 23:57:36 UTC 2003
pkgname = test
pkgver = 0.1-1
pkgdesc = Test packages
builddate = Sat Apr 19 23:57:36 2003
packager = Arch Linux (http://www.archlinux.org)
size = 4096
How to create an AL package:
1. make one folder (e.g. /test-folder) and copy all folders & files you want to include in the package.
2. with editor make one .PKGINFO file and save it in the folder.
3. run in same folder:
# tar czvf test-0.1-1.pkg.tar.gz .PKGINFO folder1 folder2 file1 file2 file3


Markku

Offline

#4 2003-04-21 18:51:15

netkrash
Member
From: Viña del Mar, Chile.
Registered: 2003-03-19
Posts: 95

Re: AL package from binary?

i think the better way is to use the standar PKGBUILD and the makepkg command.

First, extract the program.. be sure to use a non-standar prefix e.g:

tar zxpvf mybinary.tar.gz -C /opt/mybinary

check inside /opt/mybinary for the directory tree (usr/bin usr/share .. and so on)

once you've checked the directory tree you can safely pack it again or use the same package as source.

cd /opt/mybinary
tar c usr | gzip -9 > mybinary-version.tar.gz

edit your PKGBUILD and remove configure, make and make install

thats all,

now makepkg will extract it under the prefix ./pkg/ and generate .PKGINFO and filelist and the AL pkg itself.

is easy to undestand that you must be SURE that the directory tree is correct, this way you will not break the AL standars.

good luck,


GNU/Linux: Share & Enjoy!

Offline

#5 2003-04-22 03:21:48

rasat
Forum Fellow
From: Finland
Registered: 2002-12-27
Posts: 2,295
Website

Re: AL package from binary?

netkrash wrote:

....this way you will not break the AL standard.

I agree when it requires to upload the package to AL's incoming archive with filelist and PKGBUILD for checking. My suggestion is for personal use or to test the package.


Markku

Offline

#6 2003-04-22 15:19:46

netkrash
Member
From: Viña del Mar, Chile.
Registered: 2003-03-19
Posts: 95

Re: AL package from binary?

you're right, your way is faster but please if somebody wants to upload some pkg to incoming do it the AL way.

greets,


GNU/Linux: Share & Enjoy!

Offline

Board footer

Powered by FluxBB