You are not logged in.
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
Finally.. 7z for *nix. Thanks!
I hope it gets in the official repos.. maybe even implemented in pacman.
(next to .tar.gz & .bz2 even)
:: / my web presence
Offline
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
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
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
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
Gnome - The weakest link!
Linux, *not* GNU/Linux!
Offline
- 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.
- add md5sums line:
md5sums=('8c6a7b49f360917cbdd8391f3a926a19')
Done.
- 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
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.
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
also: add the license field.
license="LGPL"
Done.
Greetings.
Miroslaw
Offline
- 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
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