diff options
Diffstat (limited to 'libre/p7zip-libre')
-rw-r--r-- | libre/p7zip-libre/PKGBUILD | 17 |
1 files changed, 12 insertions, 5 deletions
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 <thayer@archlinux.org> # Contributor: Hugo Doria <hugo@archlinux.org> # Contributor: TuxSpirit<tuxspirit@archlinux.fr> 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} |