# $Id$ # Maintainer: Evangelos Foutras # Contributor: Gaetan Bisson # Contributor: Thayer Williams # Contributor: Hugo Doria # Contributor: TuxSpirit 2007/11/17 21:22:36 UTC # Contributor: Daniel J Griffiths # ALARM: Kevin Mihelich # - use makefile.linux_any_cpu pkgname=p7zip pkgver=16.02 pkgrel=1 pkgdesc="Command-line file archiver with high compression ratio" arch=('i686' 'x86_64') url="http://p7zip.sourceforge.net/" license=('LGPL' 'custom:unRAR') depends=('gcc-libs' 'sh') makedepends_i686=('nasm') makedepends_x86_64=('yasm') install=$pkgname.install source=(https://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/${pkgname}_${pkgver}_src_all.tar.bz2) sha256sums=('5eb20ac0e2944f6cb9c2d51dd6c4518941c185347d4089ea89087ffdd6e2341f') prepare() { cd "$srcdir/${pkgname}_$pkgver" cp makefile.linux_any_cpu_gcc_4.X makefile.machine } build() { cd "$srcdir/${pkgname}_$pkgver" make all3 OPTFLAGS="$CFLAGS" } package() { cd "$srcdir/${pkgname}_$pkgver" make install \ DEST_DIR="$pkgdir" \ DEST_HOME=/usr \ DEST_MAN=/usr/share/man install -d "${pkgdir}"/usr/share/licenses/p7zip ln -s -t "$pkgdir/usr/share/licenses/p7zip/" \ /usr/share/doc/p7zip/DOC/License.txt \ /usr/share/doc/p7zip/DOC/unRarLicense.txt } # vim:set ts=2 sw=2 et: