blob: 5d2061a091cc5a633ef7b325eb672c4fc356b95e (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# Maintainer: Tomasz Maciej Nowak <com[dot]gmail[at]tmn505>
# Contributor: Evangelos Foutras <evangelos@foutrelis.com>
# Contributor: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Thayer Williams <thayer@archlinux.org>
# Contributor: Hugo Doria <hugo@archlinux.org>
# Contributor: TuxSpirit <tuxspirit@archlinux.fr>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
# All my PKGBUILDs are managed at https://github.com/tmn505/AUR
pkgname=p7zip-gui
pkgver=16.02
pkgrel=9
pkgdesc='Graphic user interface (alpha quality) for the 7zip file archiver'
url='http://p7zip.sourceforge.net'
license=('custom:unRAR' ' LGPL-2.1-or-later')
arch=('i686' 'x86_64')
depends=('p7zip' 'wxwidgets-gtk3')
optdepends=('desktop-file-utils: desktop entries'
'kservice: entries in kde context menu')
makedepends=('python')
makedepends_i686=('nasm')
makedepends_x86_64=('yasm')
conflicts=('7-zip-full')
install='p7zip-gui.install'
source=("https://downloads.sourceforge.net/project/p7zip/p7zip/${pkgver}/p7zip_${pkgver}_src_all.tar.bz2"
'https://src.fedoraproject.org/rpms/p7zip/raw/rawhide/f/14-Fix-g++-warning.patch'
'https://raw.githubusercontent.com/archlinux/svntogit-packages/a82b67f5d36f374afd154e7648bb13ec38a3c497/trunk/CVE-2016-9296.patch'
'https://raw.githubusercontent.com/archlinux/svntogit-packages/a82b67f5d36f374afd154e7648bb13ec38a3c497/trunk/CVE-2017-17969.patch'
'https://raw.githubusercontent.com/archlinux/svntogit-packages/a82b67f5d36f374afd154e7648bb13ec38a3c497/trunk/CVE-2018-5996.patch'
'https://raw.githubusercontent.com/archlinux/svntogit-packages/a82b67f5d36f374afd154e7648bb13ec38a3c497/trunk/CVE-2018-10115.patch'
'https://src.fedoraproject.org/rpms/p7zip/raw/rawhide/f/gcc10-conversion.patch'
'7zFM.desktop')
sha256sums=('5eb20ac0e2944f6cb9c2d51dd6c4518941c185347d4089ea89087ffdd6e2341f'
'a923c8876f36201064b0efabbc2121e47cf7a78a0700d3974ef24ab3a05bd88a'
'f9bcbf21d4aa8938861a6cba992df13dec19538286e9ed747ccec6d9a4e8f983'
'c6af5ba588b8932a5e99f3741fcf1011b7c94b533de903176c7d1d4c02a9ebef'
'9c92b9060fb0ecc3e754e6440d7773d04bc324d0f998ebcebc263264e5a520df'
'c397eb6ad60bfab8d388ea9b39c0c13ae818f86746210c6435e35b35c786607f'
'f90013d66d3c9865cb56fed2fb0432057a07283d5361e2ae9e98c3d3657f42a1'
'ae1f3c95ec40e82f7b74bd039bd9cbfa69136682e161b91a4534b7d9cdedcbd4')
prepare() {
cd ${srcdir}/p7zip_${pkgver}
patch -p1 -i ${srcdir}/14-Fix-g++-warning.patch
patch -p1 -i ${srcdir}/CVE-2016-9296.patch
patch -p1 -i ${srcdir}/CVE-2017-17969.patch
patch -p1 -i ${srcdir}/CVE-2018-5996.patch
patch -p1 -i ${srcdir}/CVE-2018-10115.patch
patch -p1 -i ${srcdir}/gcc10-conversion.patch
if [[ ${CARCH} = x86_64 ]]; then
cp makefile.linux_amd64_asm makefile.machine
else
cp makefile.linux_x86_asm_gcc_4.X makefile.machine
fi
sed -i 's/x86_64-linux-gnu//g' CPP/7zip/*/*/*.depend
rm GUI/kde4/p7zip_compress.desktop # FS#43766
cd Utils
sed -i 's/_do_not_use//g' generate.py
./generate.py
}
build() {
cd ${srcdir}/p7zip_${pkgver}
make 7zFM 7zG OPTFLAGS="${CXXFLAGS}"
}
package() {
cd ${srcdir}/p7zip_${pkgver}
make install \
DEST_DIR="${pkgdir}" \
DEST_HOME="/usr" \
DEST_MAN="/usr/share/man"
# remove files provided by p7zip package
rm -f -R \
${pkgdir}/usr/lib/p7zip/Codecs \
${pkgdir}/usr/lib/p7zip/7z.so \
${pkgdir}/usr/share/man
find ${pkgdir}/usr/share/doc -type f -not -path "${pkgdir}/usr/share/doc/p7zip/DOC/MANUAL/fm*" -delete
find ${pkgdir}/usr/share/doc -type d -empty -delete
install -D -m 644 GUI/p7zip_32.png ${pkgdir}/usr/share/icons/hicolor/32x32/apps/p7zip.png
install -D -m 644 -t ${pkgdir}/usr/share/kservices5/ServiceMenus GUI/kde4/*.desktop
install -D -m 644 -t ${pkgdir}/usr/share/kio/servicemenus GUI/kde4/*.desktop
install -D -m 644 -t ${pkgdir}/usr/share/applications ${srcdir}/7zFM.desktop
ln -s 7zCon.sfx ${pkgdir}/usr/lib/p7zip/7z.sfx
ln -s /usr/share/doc/p7zip/DOC/MANUAL ${pkgdir}/usr/lib/p7zip/help
chmod +x ${pkgdir}/usr/bin/p7zipForFilemanager
}
|