2015-02-10 01:48:34 +00:00
|
|
|
# $Id$
|
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>
|
|
|
|
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - use makefile.linux_any_cpu
|
|
|
|
|
|
|
|
pkgname=p7zip
|
2015-03-09 04:27:28 +00:00
|
|
|
pkgver=9.38.1
|
2015-04-09 21:59:41 +00:00
|
|
|
pkgrel=2
|
2012-03-03 06:25:26 +00:00
|
|
|
pkgdesc='Command-line version of the 7zip compressed file archiver'
|
|
|
|
url='http://p7zip.sourceforge.net/'
|
|
|
|
license=('GPL' 'custom')
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
depends=('gcc-libs' 'bash')
|
2015-02-10 01:48:34 +00:00
|
|
|
optdepends=('wxgtk: GUI'
|
2012-03-03 06:25:26 +00:00
|
|
|
'desktop-file-utils: desktop entries')
|
2015-02-10 01:48:34 +00:00
|
|
|
makedepends=('yasm' 'nasm' 'wxgtk')
|
2012-03-03 06:25:26 +00:00
|
|
|
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}_${pkgver}_src_all.tar.bz2"
|
2015-02-10 01:48:34 +00:00
|
|
|
'osversion.patch'
|
2012-03-03 06:25:26 +00:00
|
|
|
'7zFM.desktop')
|
2015-03-09 04:27:28 +00:00
|
|
|
sha1sums=('6b1eccf272d8b141a94758f80727ae633568ba69'
|
2015-02-10 01:48:34 +00:00
|
|
|
'8c086db1c7be0d52d2ac971f44adbdccf6dd82de'
|
2015-04-09 21:59:41 +00:00
|
|
|
'441e8d89457f165c22015dedd0c1ee88504f333c')
|
2012-03-03 06:25:26 +00:00
|
|
|
|
2015-02-10 01:48:34 +00:00
|
|
|
options=('!makeflags')
|
2012-03-03 06:25:26 +00:00
|
|
|
install=install
|
|
|
|
|
2014-01-12 01:04:08 +00:00
|
|
|
prepare() {
|
2012-03-03 06:25:26 +00:00
|
|
|
cd "${srcdir}/${pkgname}_${pkgver}"
|
2015-02-10 01:48:34 +00:00
|
|
|
cp makefile.linux_any_cpu_gcc_4.X makefile.machine
|
2014-01-11 22:27:13 +00:00
|
|
|
|
2015-02-10 01:48:34 +00:00
|
|
|
patch -p1 -i ../osversion.patch
|
|
|
|
sed -i 's/x86_64-linux-gnu//g' CPP/7zip/*/*/*.depend
|
2015-02-11 16:36:21 +00:00
|
|
|
|
|
|
|
rm GUI/kde4/p7zip_compress.desktop # FS#43766
|
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() {
|
|
|
|
cd "${srcdir}/${pkgname}_${pkgver}"
|
2012-03-03 06:25:26 +00:00
|
|
|
make all4 OPTFLAGS="${CXXFLAGS}"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}_${pkgver}"
|
|
|
|
make install \
|
|
|
|
DEST_DIR="${pkgdir}" \
|
|
|
|
DEST_HOME="/usr" \
|
|
|
|
DEST_MAN="/usr/share/man"
|
|
|
|
|
2015-02-10 01:48:34 +00:00
|
|
|
# Doc and licenses
|
|
|
|
cp -a DOC/* "${pkgdir}"/usr/share/doc/p7zip
|
2012-03-03 06:25:26 +00:00
|
|
|
install -d "${pkgdir}"/usr/share/licenses/p7zip
|
|
|
|
ln -s -t "${pkgdir}"/usr/share/licenses/p7zip \
|
2015-02-10 01:48:34 +00:00
|
|
|
/usr/share/doc/p7zip/License.txt \
|
|
|
|
/usr/share/doc/p7zip/unRarLicense.txt
|
2012-03-03 06:25:26 +00:00
|
|
|
|
|
|
|
# Integration with stuff...
|
2015-02-10 01:48:34 +00:00
|
|
|
install -Dm644 GUI/p7zip_32.png "${pkgdir}"/usr/share/icons/hicolor/32x32/apps/p7zip.png
|
2012-03-03 06:25:26 +00:00
|
|
|
install -d "${pkgdir}"/usr/share/{applications,kde4/services/ServiceMenus}
|
|
|
|
cp GUI/kde4/* "${pkgdir}"/usr/share/kde4/services/ServiceMenus/
|
|
|
|
cp ../7zFM.desktop "${pkgdir}"/usr/share/applications/
|
|
|
|
ln -s 7zCon.sfx "${pkgdir}"/usr/lib/p7zip/7z.sfx
|
|
|
|
|
|
|
|
find GUI/help -type d -exec chmod 755 {} \;
|
|
|
|
cp -r GUI/help "${pkgdir}"/usr/lib/p7zip/
|
|
|
|
|
2015-02-22 17:06:28 +00:00
|
|
|
chmod -R a+r,u+w,a+X "${pkgdir}/usr"
|
2012-03-03 06:25:26 +00:00
|
|
|
}
|