blob: 4d6c70bbbcc6d21a3d3fb33c5f577ab68b094e04 (
plain)
1 # Description: A port of 7-zip for POSIX systems.
2 # URL: http://p7zip.sourceforge.net/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Packager: Matt Housh, jaeger at crux dot nu
5
6 name=p7zip
7 version=9.20.1
8 release=1
9 source=(http://downloads.sourceforge.net/project/$name/$name/$version/${name}_${version}_src_all.tar.bz2)
10
11 build() {
12 cd ${name}_$version
13
14 sed -i -e "s/OPTFLAGS=.*/OPTFLAGS=$CFLAGS/" makefile.machine
15
16 make 7zr 7za sfx
17 sh install.sh usr/bin usr/lib/p7zip usr/man usr/share/doc/p7zip $PKG/
18
19 rm $PKG/usr/bin/7za $PKG/usr/bin/7zr
20
21 ln -s /usr/lib/p7zip/7za $PKG/usr/bin/7z
22 ln -s /usr/lib/p7zip/7za $PKG/usr/bin/7za
23 ln -s /usr/lib/p7zip/7zr $PKG/usr/bin/7zr
24 rm -r $PKG/usr/share
25 chmod -vR u+w $PKG
26 }
|