From 6e1bc3411613e72a07013b0525817c0a9e9ea19b Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Tue, 1 Oct 2013 06:52:58 -0300 Subject: p7zip-libre-9.20.1-8: fix FS#37149 => https://bugs.archlinux.org/task/37149 --- libre/p7zip-libre/PKGBUILD | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'libre/p7zip-libre') diff --git a/libre/p7zip-libre/PKGBUILD b/libre/p7zip-libre/PKGBUILD index fbd189a81..91d6f5345 100644 --- a/libre/p7zip-libre/PKGBUILD +++ b/libre/p7zip-libre/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 188504 2013-06-15 04:51:48Z bisson $ +# $Id: PKGBUILD 195474 2013-09-30 18:46:35Z bisson $ # Contributor: Thayer Williams # Contributor: Hugo Doria # Contributor: TuxSpirit 2007/11/17 21:22:36 UTC @@ -8,7 +8,7 @@ pkgname=p7zip-libre _pkgname=${pkgname%-libre} pkgver=9.20.1 -pkgrel=7 +pkgrel=8 pkgdesc='Command-line version of the 7zip compressed file archiver without Rar' url='http://p7zip.sourceforge.net/' license=('GPL') @@ -30,13 +30,16 @@ sha1sums=('1cd567e043ee054bf08244ce15f32cb3258306b7' options=('!makeflags') install=install -build() { +prepare() { cd "${srcdir}/${_pkgname}_${pkgver}" - + rm GUI/kde4/p7zip_compress.desktop [[ $CARCH = x86_64 ]] \ && cp makefile.linux_amd64_asm makefile.machine \ || cp makefile.linux_x86_asm_gcc_4.X makefile.machine +} +build() { + cd "${srcdir}/${pkgname}_${pkgver}" msg "Removing unRar" # Generate patch # sed -e '/Rar/d' -i makefile* @@ -49,12 +52,16 @@ build() { package() { cd "${srcdir}/${_pkgname}_${pkgver}" - make install \ DEST_DIR="${pkgdir}" \ DEST_HOME="/usr" \ DEST_MAN="/usr/share/man" + # Licenses + install -d "${pkgdir}"/usr/share/licenses/p7zip + ln -s -t "${pkgdir}"/usr/share/licenses/p7zip \ + /usr/share/doc/p7zip/DOCS/License.txt + # Integration with stuff... install -Dm644 GUI/p7zip_32.png "${pkgdir}"/usr/share/icons/hicolor/32x32/apps/p7zip.png install -d "${pkgdir}"/usr/share/{applications,kde4/services/ServiceMenus} -- cgit v1.2.3-54-g00ecf