forked from ports/contrib
30 lines
799 B
Plaintext
30 lines
799 B
Plaintext
# Description: p7zip is a port of 7-Zip, the archiver with the highest compression ratio.
|
|
# URL: http://p7zip.sourceforge.net/
|
|
# Maintainer: Han Boetes <han@mijncomputer.nl>
|
|
# Packager: Han Boetes <han@mijncomputer.nl>
|
|
|
|
name=p7zip
|
|
version=4.39
|
|
release=1
|
|
source="http://heanet.dl.sourceforge.net/sourceforge/$name/${name}_${version}_src_all.tar.bz2"
|
|
|
|
build()
|
|
{
|
|
cd ${name}_$version
|
|
(
|
|
set +x
|
|
set -- $(find . -name '*.cpp' -or -name '*.h')
|
|
for i in $*; do
|
|
echo >> $i
|
|
done
|
|
)
|
|
sed -i "s|/usr/local|/usr|" makefile
|
|
sed -i "s|/usr/local|$PKG/usr|" ./install.sh
|
|
# cp makefile.architecture makefile.machine
|
|
sed -i "s|-Wall -O2|$CFLAGS|" makefile.machine
|
|
make 7za sfx
|
|
./install.sh
|
|
# bludi bludi bludi
|
|
ln -sf /usr/lib/p7zip/7za $PKG/usr/bin/7za
|
|
}
|