### this file is sourced not run
PKGVER=4.65
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=p7zip_4.65_src_all.tar.bz2
MD5SUM=f78ed232436dc8f8be25a2f95d4e5f9a 
SRC_URL=http://downloads.sourceforge.net/p7zip/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC='xarchiver-p7zip: xarchiver-p7zip 4.65 (7zip support for xarchiver)  
xarchiver-p7zip:  
xarchiver-p7zip: This package contains 7zr version 4.65, for use with 
xarchiver-p7zip: xarchiver. If you need newer version or need the other 
xarchiver-p7zip: binaries, use the full p7zip package.  
xarchiver-p7zip: 
xarchiver-p7zip: 
xarchiver-p7zip: 
xarchiver-p7zip: 
xarchiver-p7zip: 
xarchiver-p7zip: 
'

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/p7zip*
	sed -i -e 's/SetCapacity/this->SetCapacity/' CPP/Common/DynamicBuffer.h
	make $MAKEFLAGS 7zr &&
	cp bin/7zr /usr/bin &&
	cp man1/7zr.1 /usr/share/man/man1 &&
	pkg_build_slackdesc
}


