void-packages/srcpkgs/p7zip/template
Juan RP 5a2cc5b5bd xbps-src: infrastructure changes required for "nonfree" keyword in tmpls.
- The chroot target now execs masterdir/bin/xbps-shell to set up correct envvars.
- 2 pkgs are now in nonfree repo: adobe-flash-plugin and jre.
- Renamed some vars in xbps-src to be in uppercase, notably XBPS_MACHINE.
- make-repoidx target now creates the index for all "known" directories specified
  via XBPS_PACKAGESDIR: XBPS_MACHINE, noarch, and nonfree/XBPS_MACHINE.
2011-11-08 11:56:17 +01:00

38 lines
1 KiB
Text

# Template file for 'p7zip'
pkgname=p7zip
version=9.20.1
wrksrc=${pkgname}_${version}
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}_${version}_src_all.tar.bz2"
short_desc="Command-line version of the 7zip compressed file archive"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=49557e7ffca08100f9fc687f4dfc5aea703ca207640c76d9dee7b66f03cb4782
long_desc="
p7zip is the Unix port of 7-Zip, a file archiver that archives with very
high compression ratios."
Add_dependency run libgcc
Add_dependency run glibc
Add_dependency run libstdc++
Add_dependency build yasm
Add_dependency build nasm
do_build()
{
if [ "$XBPS_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}
}