void-packages/srcpkgs/p7zip/template

32 lines
1,004 B
Text
Raw Normal View History

2011-05-04 19:24:29 +00:00
# Template file for 'p7zip'
pkgname=p7zip
2015-02-10 08:33:01 +00:00
version=9.38
2011-05-04 19:24:29 +00:00
wrksrc=${pkgname}_${version}
2015-02-10 08:33:01 +00:00
revision=1
hostmakedepends="yasm nasm"
2011-05-04 19:24:29 +00:00
short_desc="Command-line version of the 7zip compressed file archive"
2013-03-31 07:51:38 +00:00
homepage="http://p7zip.sourceforge.net/"
license="LGPL-2.1"
2011-05-04 19:24:29 +00:00
maintainer="Juan RP <xtraeme@gmail.com>"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}_${version}_src_all.tar.bz2"
2015-02-10 08:33:01 +00:00
checksum=cb609e9be65d2f5c4668851b98e93ad6f7b3a7f2ee2b302641a8f0e1c9104daa
2011-05-04 19:24:29 +00:00
2014-06-21 10:27:39 +00:00
do_configure() {
case "$XBPS_TARGET_MACHINE" in
i686*) cp makefile.linux_x86_asm_gcc_4.X makefile.machine;;
x86_64*) cp makefile.linux_amd64_asm makefile.machine;;
*) cp makefile.linux_any_cpu_gcc_4.X makefile.machine;;
esac
2014-06-21 10:27:39 +00:00
sed -e 's,-s ,,' -i makefile.machine
sed -e "s,g++,${CXX}," -i makefile.machine
sed -e "s,gcc,${CC}," -i makefile.machine
}
do_build() {
make all3 OPTFLAGS="$CXXFLAGS"
2011-05-04 19:24:29 +00:00
}
do_install() {
2014-06-21 10:27:39 +00:00
make install DEST_DIR="${DESTDIR}" DEST_HOME="/usr" \
DEST_MAN="/usr/share/man" \
DEST_SHARE_DOC="/usr/share/doc/${pkgname}"
2011-05-04 19:24:29 +00:00
}