mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
extra/p7zip to 9.38-1
This commit is contained in:
parent
1eb25f797c
commit
06e0253883
2 changed files with 46 additions and 18 deletions
|
@ -1,4 +1,4 @@
|
||||||
# $Id: PKGBUILD 143960 2011-11-30 22:27:20Z andrea $
|
# $Id$
|
||||||
# Contributor: Thayer Williams <thayer@archlinux.org>
|
# Contributor: Thayer Williams <thayer@archlinux.org>
|
||||||
# Contributor: Hugo Doria <hugo@archlinux.org>
|
# Contributor: Hugo Doria <hugo@archlinux.org>
|
||||||
# Contributor: TuxSpirit<tuxspirit@archlinux.fr> 2007/11/17 21:22:36 UTC
|
# Contributor: TuxSpirit<tuxspirit@archlinux.fr> 2007/11/17 21:22:36 UTC
|
||||||
|
@ -6,36 +6,35 @@
|
||||||
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
|
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
|
||||||
|
|
||||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||||
# - change optimization to O0 to fix ICE
|
|
||||||
# - use makefile.linux_any_cpu
|
# - use makefile.linux_any_cpu
|
||||||
|
|
||||||
pkgname=p7zip
|
pkgname=p7zip
|
||||||
pkgver=9.20.1
|
pkgver=9.38
|
||||||
pkgrel=9
|
pkgrel=1
|
||||||
pkgdesc='Command-line version of the 7zip compressed file archiver'
|
pkgdesc='Command-line version of the 7zip compressed file archiver'
|
||||||
url='http://p7zip.sourceforge.net/'
|
url='http://p7zip.sourceforge.net/'
|
||||||
license=('GPL' 'custom')
|
license=('GPL' 'custom')
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
depends=('gcc-libs' 'bash')
|
depends=('gcc-libs' 'bash')
|
||||||
optdepends=('wxgtk2.8: GUI'
|
optdepends=('wxgtk: GUI'
|
||||||
'desktop-file-utils: desktop entries')
|
'desktop-file-utils: desktop entries')
|
||||||
makedepends=('wxgtk2.8')
|
makedepends=('yasm' 'nasm' 'wxgtk')
|
||||||
options=('!makeflags')
|
|
||||||
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}_${pkgver}_src_all.tar.bz2"
|
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}_${pkgver}_src_all.tar.bz2"
|
||||||
|
'osversion.patch'
|
||||||
'7zFM.desktop')
|
'7zFM.desktop')
|
||||||
sha1sums=('1cd567e043ee054bf08244ce15f32cb3258306b7'
|
sha1sums=('693bc2a1426df7a12762b4542a8327add23f0dc3'
|
||||||
|
'8c086db1c7be0d52d2ac971f44adbdccf6dd82de'
|
||||||
'f2c370d6f1b286b7ce9a2804e22541b755616a40')
|
'f2c370d6f1b286b7ce9a2804e22541b755616a40')
|
||||||
|
|
||||||
|
options=('!makeflags')
|
||||||
install=install
|
install=install
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "${srcdir}/${pkgname}_${pkgver}"
|
cd "${srcdir}/${pkgname}_${pkgver}"
|
||||||
rm GUI/kde4/p7zip_compress.desktop
|
cp makefile.linux_any_cpu_gcc_4.X makefile.machine
|
||||||
CFLAGS=`echo $CFLAGS | sed -e 's/-O2/-O0/'` && CXXFLAGS="$CFLAGS"
|
|
||||||
cp makefile.linux_any_cpu makefile.machine
|
|
||||||
|
|
||||||
sed -i 's/wx-config/wx-config-2.8/g' CPP/7zip/TEST/TestUI/makefile \
|
patch -p1 -i ../osversion.patch
|
||||||
CPP/7zip/UI/{FileManager,GUI,P7ZIP}/makefile
|
sed -i 's/x86_64-linux-gnu//g' CPP/7zip/*/*/*.depend
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
@ -50,14 +49,15 @@ package() {
|
||||||
DEST_HOME="/usr" \
|
DEST_HOME="/usr" \
|
||||||
DEST_MAN="/usr/share/man"
|
DEST_MAN="/usr/share/man"
|
||||||
|
|
||||||
# Licenses
|
# Doc and licenses
|
||||||
|
cp -a DOC/* "${pkgdir}"/usr/share/doc/p7zip
|
||||||
install -d "${pkgdir}"/usr/share/licenses/p7zip
|
install -d "${pkgdir}"/usr/share/licenses/p7zip
|
||||||
ln -s -t "${pkgdir}"/usr/share/licenses/p7zip \
|
ln -s -t "${pkgdir}"/usr/share/licenses/p7zip \
|
||||||
/usr/share/doc/p7zip/DOCS/License.txt \
|
/usr/share/doc/p7zip/License.txt \
|
||||||
/usr/share/doc/p7zip/DOCS/unRarLicense.txt
|
/usr/share/doc/p7zip/unRarLicense.txt
|
||||||
|
|
||||||
# Integration with stuff...
|
# Integration with stuff...
|
||||||
install -D GUI/p7zip_32.png "${pkgdir}"/usr/share/icons/hicolor/32x32/apps/p7zip.png
|
install -Dm644 GUI/p7zip_32.png "${pkgdir}"/usr/share/icons/hicolor/32x32/apps/p7zip.png
|
||||||
install -d "${pkgdir}"/usr/share/{applications,kde4/services/ServiceMenus}
|
install -d "${pkgdir}"/usr/share/{applications,kde4/services/ServiceMenus}
|
||||||
cp GUI/kde4/* "${pkgdir}"/usr/share/kde4/services/ServiceMenus/
|
cp GUI/kde4/* "${pkgdir}"/usr/share/kde4/services/ServiceMenus/
|
||||||
cp ../7zFM.desktop "${pkgdir}"/usr/share/applications/
|
cp ../7zFM.desktop "${pkgdir}"/usr/share/applications/
|
||||||
|
@ -66,5 +66,5 @@ package() {
|
||||||
find GUI/help -type d -exec chmod 755 {} \;
|
find GUI/help -type d -exec chmod 755 {} \;
|
||||||
cp -r GUI/help "${pkgdir}"/usr/lib/p7zip/
|
cp -r GUI/help "${pkgdir}"/usr/lib/p7zip/
|
||||||
|
|
||||||
chmod -R u+w "${pkgdir}/usr"
|
chmod -R u+w,o+r "${pkgdir}/usr"
|
||||||
}
|
}
|
||||||
|
|
28
extra/p7zip/osversion.patch
Normal file
28
extra/p7zip/osversion.patch
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
diff -Naur old/CPP/7zip/UI/FileManager/FM.cpp new/CPP/7zip/UI/FileManager/FM.cpp
|
||||||
|
--- old/CPP/7zip/UI/FileManager/FM.cpp 2015-01-18 08:59:09.000000000 -1000
|
||||||
|
+++ new/CPP/7zip/UI/FileManager/FM.cpp 2015-02-09 11:39:55.575712452 -1000
|
||||||
|
@@ -348,24 +348,7 @@
|
||||||
|
|
||||||
|
bool IsLargePageSupported()
|
||||||
|
{
|
||||||
|
- #ifdef _WIN64
|
||||||
|
return true;
|
||||||
|
- #else
|
||||||
|
- OSVERSIONINFO versionInfo;
|
||||||
|
- versionInfo.dwOSVersionInfoSize = sizeof(versionInfo);
|
||||||
|
- if (!::GetVersionEx(&versionInfo))
|
||||||
|
- return false;
|
||||||
|
- if (versionInfo.dwPlatformId != VER_PLATFORM_WIN32_NT || versionInfo.dwMajorVersion < 5)
|
||||||
|
- return false;
|
||||||
|
- if (versionInfo.dwMajorVersion > 5)
|
||||||
|
- return true;
|
||||||
|
- if (versionInfo.dwMinorVersion < 1)
|
||||||
|
- return false;
|
||||||
|
- if (versionInfo.dwMinorVersion > 1)
|
||||||
|
- return true;
|
||||||
|
- // return IsWow64();
|
||||||
|
- return false;
|
||||||
|
- #endif
|
||||||
|
}
|
||||||
|
|
||||||
|
#if 0 //#ifndef UNDER_CE
|
Loading…
Reference in a new issue