You are not logged in.

#1 2004-08-28 05:59:33

forest76
Member
From: Poland
Registered: 2004-01-31
Posts: 32

[system: utilities] p7zip

Best program for data compresion. This compilation include stand-alone program, but build it with no-stand-alone and modules is possible too. 7z link was created for compability.

PKGBUILD:

# $Id:  $
# Contributor: forest76 <forestt@poczta.onet.pl>
pkgname=p7zip
pkgver=0.91
pkgrel=1
pkgdesc='Very effective data compression program'
url=('http://p7zip.sourceforge.net/')
depends=('gcc')
license=('LGPL')
source=("http://dl.sourceforge.net/sourceforge/p7zip/${pkgname}_$pkgver.tar.bz2")
md5sums=('8c6a7b49f360917cbdd8391f3a926a19')
build() {
    cd $startdir/src/${pkgname}_$pkgver
    CXXFLAGS=`echo $CXXFLAGS | sed "s/-fno-exceptions/-fexceptions/"` 
    make || return 1
    install -D -m755 $startdir/src/${pkgname}_$pkgver/bin/7za $startdir/pkg/usr/bin/7za
    cd $startdir/pkg/usr/bin
    ln -s 7za 7z
    }

Offline

#2 2004-08-28 09:13:44

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: [system: utilities] p7zip

Finally.. 7z for *nix. Thanks!
I hope it gets in the official repos.. maybe even implemented in pacman.
(next to .tar.gz & .bz2 even)

Offline

#3 2004-08-28 10:04:04

Abaddon
Member
From: Poland
Registered: 2004-05-03
Posts: 249

Re: [system: utilities] p7zip

I hope it gets in the official repos.. maybe even implemented in pacman.

Yes, it's compression power is amazing.


Gnome - The weakest link!
Linux, *not* GNU/Linux!

Offline

#4 2004-08-28 13:09:30

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: [system: utilities] p7zip

Thanks for the pkgbuild. Looks like this program is worth a try.

A few suggestions:

- don't use mirror name in the source line so the pkgbuild will be more universal. You can change it to:
source=("http://dl.sourceforge.net/sourceforge/p7zip/${pkgname}_$pkgver.tar.bz2")

- add md5sums line:
md5sums=('8c6a7b49f360917cbdd8391f3a926a19')

- to ensure right permissions replace mkdir/cp commands with:
install -D -m755 $startdir/src/${pkgname}_$pkgver/bin/7za $startdir/pkg/usr/bin/7za
(not that mkdir/cp is not working...)

Important info from the readme file:

LIMITATIONS from 7-zip :
------------------------
  - works only on little-endian machine

  - does not support uid/gid or Unix file access permissions
  for the .tar format (so, use tar on Unix)

  - the flag "-mt=on" is not understood.

  - can't use absolute paths (wait for 7-zip 4.0)

LIMITATIONS for Unix version only :
-----------------------------------

  - can handle properly UNICODE filenames only if the environment is UTF-8.
  Example : export LANG=en_US.UTF-8
  Remark  : see in the directory "/usr/lib/locale" the possible values
            for LANG

  - ignores Windows file access permissions (files are created with
    default permissions)

  - archives the file/directory instead of the link.

  - can extract files from a SFX archive (Self Extracting Archive)
  but cannot create SFX archives.

  - cannot test or extract file from rar archives because the source code
  that handles rar archives is not provide by 7-zip.
  (but you can list rar archives)

PS. In Polish:
Czlowiek sobie rano wstaje, je sniadanko, czyta linuxowe newsy, otwiera forum a tam nowy blyszczacy pkgbuild gotowy. Zyc nie umierac ;-)

EDIT:
- change dependencies from glibc to gcc because p7zip links to /usr/lib/libstdc++.so.6 which is part of gcc not glibc, and glibc is required by gcc so depends=('gcc') is enough.

Offline

#5 2004-08-28 13:31:32

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: [system: utilities] p7zip

also: add the license field.

license="LGPL"


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#6 2004-08-28 13:39:49

Abaddon
Member
From: Poland
Registered: 2004-05-03
Posts: 249

Re: [system: utilities] p7zip

lanrat wrote:

PS. In Polish:
Czlowiek sobie rano wstaje, je sniadanko, czyta linuxowe newsy, otwiera forum a tam nowy blyszczacy pkgbuild gotowy. Zyc nie umierac ;-)

In Polish:

Jeszcze, zeby te pkgbuildy do repozytoriow trafialy w wiekszej ilosci to juz w ogole sama radosc by byla wink


Gnome - The weakest link!
Linux, *not* GNU/Linux!

Offline

#7 2004-08-28 14:39:55

forest76
Member
From: Poland
Registered: 2004-01-31
Posts: 32

Re: [system: utilities] p7zip

lanrat wrote:

- don't use mirror name in the source line so the pkgbuild will be more universal. You can change it to:
source=("http://dl.sourceforge.net/sourceforge/p7zip/${pkgname}_$pkgver.tar.bz2")

Thank's.

lanrat wrote:

- add md5sums line:
md5sums=('8c6a7b49f360917cbdd8391f3a926a19')

Done.

lanrat wrote:

- to ensure right permissions replace mkdir/cp commands with:
install -D -m755 $startdir/src/${pkgname}_$pkgver/bin/7za $startdir/pkg/usr/bin/7za
(not that mkdir/cp is not working...)

You have right, and changed PKGBUILD. I was found some issues in this packages:
1) No manual (only html help, I try convert it to man)
2) No compress or decompress to or from standard output

Greetings.

Miroslaw

lanrat wrote:

PS. In Polish:
Czlowiek sobie rano wstaje, je sniadanko, czyta linuxowe newsy, otwiera forum a tam nowy blyszczacy pkgbuild gotowy. Zyc nie umierac ;-)

Swiete slowa.

lanrat wrote:

EDIT:
- change dependencies from glibc to gcc because p7zip links to /usr/lib/libstdc++.so.6 which is part of gcc not glibc, and glibc is required by gcc so depends=('gcc') is enough.

Changed.

Offline

#8 2004-08-28 14:44:10

forest76
Member
From: Poland
Registered: 2004-01-31
Posts: 32

Re: [system: utilities] p7zip

punkrockguy318 wrote:

also: add the license field.

license="LGPL"

Done.

Greetings.

Miroslaw

Offline

#9 2004-08-28 16:51:39

ravster
Member
From: Queen's U, Kingston, Canada
Registered: 2004-05-02
Posts: 285
Website

Re: [system: utilities] p7zip

lanrat wrote:

- don't use mirror name in the source line so the pkgbuild will be more universal. You can change it to:
source=("http://dl.sourceforge.net/sourceforge/p7zip/${pkgname}_$pkgver.tar.bz2")

Does this mean that the PKGBUILD will work, even without 'belnet' or 'aleron' written ahead of the 'dl'? Or will the person using the PKGBUILD still have to type it in? Or is it a 'make people use their brains' thing :twisted: ?

Offline

#10 2004-08-28 21:47:56

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: [system: utilities] p7zip

Does this mean that the PKGBUILD will work, even without 'belnet' or 'aleron' written ahead of the 'dl'? Or will the person using the PKGBUILD still have to type it in? Or is it a 'make people use their brains' thing :twisted: ?

It will work without mirror name.

Offline

Board footer

Powered by FluxBB