blob: 8ed943acf7343cfaa27b97fd1628809cfb7ba18d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=p7zip
pkgver=15.14.1
pkgrel=1
pkgdesc="A command-line port of the 7zip compression utility"
url="http://p7zip.sourceforge.net"
arch="all"
license="LGPL2+"
subpackages="$pkgname-doc"
depends=""
makedepends="bash yasm nasm"
install=""
source="http://downloads.sourceforge.net/sourceforge/$pkgname/${pkgname}_${pkgver}_src_all.tar.bz2
CVE-2016-9296.patch"
builddir="$srcdir"/${pkgname}_${pkgver}
prepare() {
default_prepare || return 1
local makefile="makefile.linux_any_cpu_gcc_4.X"
case "$CARCH" in
x86) makefile="makefile.linux_x86_asm_gcc_4.X" ;;
x86_64) makefile="makefile.linux_amd64_asm" ;;
esac
cd "$builddir"
ln -sf $makefile makefile.machine || return 1
sed -e "s,g++,${CXX:-g++}," -i makefile.machine
sed -e "s,gcc,${CC:-gcc}," -i makefile.machine
}
build() {
cd "$builddir"
make all3 OPTFLAGS="${CXXFLAGS}" || return 1
}
package() {
cd "$builddir"
make install DEST_DIR="$pkgdir" DEST_HOME="/usr" \
DEST_MAN="/usr/share/man" \
DEST_SHARE_DOC="/usr/share/doc/$pkgname" || return 1
install -Dm755 contrib/gzip-like_CLI_wrapper_for_7z/$pkgname \
"$pkgdir"/usr/bin/$pkgname || return 1
install -Dm644 contrib/gzip-like_CLI_wrapper_for_7z/man1/$pkgname.1 \
"$pkgdir"/usr/share/man/man1/$pkgname.1 || return 1
}
md5sums="92cca093312b5a71a7be7dc7d1d32509 p7zip_15.14.1_src_all.tar.bz2
7d449acc0a20b1c0009e3060197292bd CVE-2016-9296.patch"
sha256sums="699db4da3621904113e040703220abb1148dfef477b55305e2f14a4f1f8f25d4 p7zip_15.14.1_src_all.tar.bz2
d285b181c854a230da0dbbcd5846e004a3d0c1d70746f47f059fc7100c815161 CVE-2016-9296.patch"
sha512sums="30d0ef47bd6938cdd5d9d80ec6e7aed972655686a43adb0ae34bb9856ec7cd5a68a05c580352021055cefd6eeceb134ff6402f93686ce46e57f9757798e76abd p7zip_15.14.1_src_all.tar.bz2
e1938b26ad4868eda6205f873da00c45dcb07afca85c2db793ecec785e76fd8d6de12ce5ac64bc73509b58c886cc9a62c9f1ad6c1191c580b102d02d2f1cf170 CVE-2016-9296.patch"
|