41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
# Template file for 'p7zip'
|
|
pkgname=p7zip
|
|
version=9.20.1
|
|
wrksrc=${pkgname}_${version}
|
|
revision=2
|
|
hostmakedepends="yasm nasm"
|
|
short_desc="Command-line version of the 7zip compressed file archive"
|
|
homepage="http://p7zip.sourceforge.net/"
|
|
license="LGPL-2.1"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}_${version}_src_all.tar.bz2"
|
|
checksum=49557e7ffca08100f9fc687f4dfc5aea703ca207640c76d9dee7b66f03cb4782
|
|
long_desc="
|
|
p7zip is the Unix port of 7-Zip, a file archiver that archives with very
|
|
high compression ratios."
|
|
|
|
do_build() {
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
cp makefile.linux_amd64_asm makefile.machine
|
|
else
|
|
cp makefile.linux_x86_asm_gcc_4.X makefile.machine
|
|
fi
|
|
sed -i "s|usr/local|usr|g" makefile
|
|
|
|
make ${makejobs} all3 OPTFLAGS="${CXXFLAGS}"
|
|
}
|
|
|
|
do_install() {
|
|
make install DEST_HOME="${DESTDIR}/usr" \
|
|
DEST_MAN="${DESTDIR}/usr/share/man" \
|
|
DEST_SHARE_DOC="${DESTDIR}/usr/share/doc/${pkgname}"
|
|
|
|
sed "s|${DESTDIR}/usr|/usr|g" -i ${DESTDIR}/usr/bin/7z{,a,r}
|
|
}
|
|
|
|
p7zip_package() {
|
|
pkg_install() {
|
|
vmove usr
|
|
}
|
|
}
|