PKGBUILDs/extra/p7zip/PKGBUILD

60 lines
1.8 KiB
Bash
Raw Normal View History

2015-02-10 01:48:34 +00:00
# $Id$
2015-04-15 22:29:59 +00:00
# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
# Contributor: Gaetan Bisson <bisson@archlinux.org>
2012-03-03 06:25:26 +00:00
# Contributor: Thayer Williams <thayer@archlinux.org>
# Contributor: Hugo Doria <hugo@archlinux.org>
# Contributor: TuxSpirit<tuxspirit@archlinux.fr> 2007/11/17 21:22:36 UTC
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - use makefile.linux_any_cpu
pkgname=p7zip
2016-05-11 12:07:40 +00:00
pkgver=15.14.1
2016-05-17 22:18:32 +00:00
pkgrel=2
2015-04-15 22:29:59 +00:00
pkgdesc="Command-line file archiver with high compression ratio"
2012-03-03 06:25:26 +00:00
arch=('i686' 'x86_64')
2015-04-15 22:29:59 +00:00
url="http://p7zip.sourceforge.net/"
license=('LGPL' 'custom:unRAR')
depends=('gcc-libs' 'sh')
makedepends_i686=('nasm')
makedepends_x86_64=('yasm')
install=$pkgname.install
2016-05-17 22:18:32 +00:00
source=(https://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/${pkgname}_${pkgver}_src_all.tar.bz2
CVE-2016-2334.patch
CVE-2016-2335.patch)
sha256sums=('699db4da3621904113e040703220abb1148dfef477b55305e2f14a4f1f8f25d4'
'632cae14095e065cb550b0f16faf39d8f822d0a8bb5b605e903f3bc7657a4ee5'
'368870f92c658e8add261695923470855a969c0d7ecafd880ec7144ac245adbf')
2012-03-03 06:25:26 +00:00
2014-01-12 01:04:08 +00:00
prepare() {
2015-04-15 22:29:59 +00:00
cd "$srcdir/${pkgname}_$pkgver"
2015-02-11 16:36:21 +00:00
2015-04-15 22:29:59 +00:00
cp makefile.linux_any_cpu_gcc_4.X makefile.machine
2016-05-17 22:18:32 +00:00
# https://sourceforge.net/p/p7zip/discussion/383043/thread/9d0fb86b/
patch -Np1 -i ../CVE-2016-2334.patch
patch -Np1 -i ../CVE-2016-2335.patch
2013-10-01 01:03:17 +00:00
}
2012-03-03 06:25:26 +00:00
2013-10-01 01:03:17 +00:00
build() {
2015-04-15 22:29:59 +00:00
cd "$srcdir/${pkgname}_$pkgver"
make all3 OPTFLAGS="$CFLAGS"
2012-03-03 06:25:26 +00:00
}
package() {
2015-04-15 22:29:59 +00:00
cd "$srcdir/${pkgname}_$pkgver"
2012-03-03 06:25:26 +00:00
2015-04-15 22:29:59 +00:00
make install \
DEST_DIR="$pkgdir" \
DEST_HOME=/usr \
DEST_MAN=/usr/share/man
2012-03-03 06:25:26 +00:00
2015-04-15 22:29:59 +00:00
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
2012-03-03 06:25:26 +00:00
}
2015-04-15 22:29:59 +00:00
# vim:set ts=2 sw=2 et: