2011-05-04 21:24:29 +02:00
|
|
|
# Template file for 'p7zip'
|
|
|
|
pkgname=p7zip
|
|
|
|
version=9.20.1
|
|
|
|
wrksrc=${pkgname}_${version}
|
2014-02-21 17:04:44 +01:00
|
|
|
revision=2
|
2013-04-14 11:13:30 +02:00
|
|
|
hostmakedepends="yasm nasm"
|
2011-05-04 21:24:29 +02:00
|
|
|
short_desc="Command-line version of the 7zip compressed file archive"
|
2013-03-31 09:51:38 +02:00
|
|
|
homepage="http://p7zip.sourceforge.net/"
|
|
|
|
license="LGPL-2.1"
|
2011-05-04 21:24:29 +02:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-04-14 11:13:30 +02:00
|
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}_${version}_src_all.tar.bz2"
|
2011-05-04 21:24:29 +02:00
|
|
|
checksum=49557e7ffca08100f9fc687f4dfc5aea703ca207640c76d9dee7b66f03cb4782
|
|
|
|
|
2013-04-14 11:13:30 +02:00
|
|
|
do_build() {
|
2014-02-21 17:04:44 +01:00
|
|
|
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
|
2011-05-04 21:24:29 +02:00
|
|
|
sed -i "s|usr/local|usr|g" makefile
|
|
|
|
|
2014-02-21 17:04:44 +01:00
|
|
|
make all4 CXX="$CXX" OPTFLAGS="${CXXFLAGS}" UNICODE=1
|
2011-05-04 21:24:29 +02:00
|
|
|
}
|
|
|
|
|
2013-04-14 11:13:30 +02:00
|
|
|
do_install() {
|
2011-05-04 21:24:29 +02:00
|
|
|
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}
|
|
|
|
}
|