27 lines
725 B
Plaintext
27 lines
725 B
Plaintext
# Description: A port of 7-zip for POSIX systems.
|
|
# URL: http://p7zip.sourceforge.net/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Packager: Matt Housh, jaeger at crux dot nu
|
|
|
|
name=p7zip
|
|
version=9.20.1
|
|
release=1
|
|
source=(http://downloads.sourceforge.net/project/$name/$name/$version/${name}_${version}_src_all.tar.bz2)
|
|
|
|
build() {
|
|
cd ${name}_$version
|
|
|
|
sed -i -e "s/OPTFLAGS=.*/OPTFLAGS=$CFLAGS/" makefile.machine
|
|
|
|
make 7zr 7za sfx
|
|
sh install.sh usr/bin usr/lib/p7zip usr/man usr/share/doc/p7zip $PKG/
|
|
|
|
rm $PKG/usr/bin/7za $PKG/usr/bin/7zr
|
|
|
|
ln -s /usr/lib/p7zip/7za $PKG/usr/bin/7z
|
|
ln -s /usr/lib/p7zip/7za $PKG/usr/bin/7za
|
|
ln -s /usr/lib/p7zip/7zr $PKG/usr/bin/7zr
|
|
rm -r $PKG/usr/share
|
|
chmod -vR u+w $PKG
|
|
}
|