# $Id: PKGBUILD 123984 2011-05-15 13:26:05Z bisson $ # Contributor: Thayer Williams # Contributor: Hugo Doria # Contributor: TuxSpirit 2007/11/17 21:22:36 UTC # Contributor: Daniel J Griffiths # Maintainer: Gaetan Bisson pkgname=p7zip pkgver=9.20.1 pkgrel=2 pkgdesc='Command-line version of the 7zip compressed file archiver' arch=('i686' 'x86_64') license=('GPL') url='http://p7zip.sourceforge.net/' makedepends=('yasm' 'nasm') source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}_${pkgver}_src_all.tar.bz2") sha1sums=('1cd567e043ee054bf08244ce15f32cb3258306b7') build() { cd "${srcdir}/${pkgname}_${pkgver}" [[ $CARCH = x86_64 ]] \ && cp makefile.linux_amd64_asm makefile.machine \ || cp makefile.linux_x86_asm_gcc_4.X makefile.machine make all3 OPTFLAGS="${CXXFLAGS}" } package() { cd "${srcdir}/${pkgname}_${pkgver}" make install \ DEST_DIR="${pkgdir}" \ DEST_HOME="/usr" \ DEST_MAN="/usr/share/man" chmod -R u+w "${pkgdir}"/usr/share/doc/ install -Dm755 contrib/VirtualFileSystemForMidnightCommander/u7z "${pkgdir}"/usr/lib/mc/extfs.d/u7z }