#Maintainer: George Vlahavas (vlahavas~at~gmail~dot~com) pkgname=p7zip pkgver=9.20.1 pkgrel=1dj source=(http://downloads.sourceforge.net/project/p7zip/p7zip/${pkgver}/p7zip_${pkgver}_src_all.tar.bz2) url=http://p7zip.sourceforge.net slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "p7zip (a file archiver with the highest compression ratio)" "p7zip is a quick port of 7z.exe and 7za.exe (command line version of" "7zip, see www.7-zip.org) for Unix." "7-Zip is a file archiver with the highest compression ratio." "Since 4.10, p7zip (like 7-zip) supports little-endian and big-endian" "machines." ) build() { set -e cd $startdir/src/${pkgname}_$pkgver case $arch in i?86) cp makefile.linux_x86_asm_gcc_4.X makefile.machine ;; x86_64) cp makefile.linux_amd64_asm makefile.machine ;; *) cp makefile.linux_any_cpu makefile.machine ;; esac make all3 OPTFLAGS="${CXXFLAGS}" || return 1 make install \ DEST_DIR=$startdir/pkg \ DEST_HOME=/usr \ DEST_MAN=/usr/man \ DEST_SHARE=/usr/lib${LIBDIRSUFFIX}/p7zip \ DEST_SHARE_DOC=/usr/doc/$pkgname-$pkgver set +e }