diff options
author | root <root@rshg054.dnsready.net> | 2012-12-29 02:13:48 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-12-29 02:13:48 -0800 |
commit | 5dd7ed82e788ebad2e920e0f2db7468cc6547cfe (patch) | |
tree | f467412e09912ababcd8fe6c05193d829f514dcd /extra/p7zip | |
parent | 3009e8addb4a894329bf8ab3e8fb763361833978 (diff) |
Sat Dec 29 02:10:20 PST 2012
Diffstat (limited to 'extra/p7zip')
-rw-r--r-- | extra/p7zip/7zFM.desktop | 9 | ||||
-rw-r--r-- | extra/p7zip/PKGBUILD | 62 | ||||
-rw-r--r-- | extra/p7zip/install | 13 |
3 files changed, 84 insertions, 0 deletions
diff --git a/extra/p7zip/7zFM.desktop b/extra/p7zip/7zFM.desktop new file mode 100644 index 000000000..62b8e8562 --- /dev/null +++ b/extra/p7zip/7zFM.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=7-Zip FM +GenericName=7-Zip File Manager +Type=Application +Categories=GTK;Utility;Archiving;Compression; +Terminal=false +Icon=p7zip +Exec=7zFM diff --git a/extra/p7zip/PKGBUILD b/extra/p7zip/PKGBUILD new file mode 100644 index 000000000..4bb2bb474 --- /dev/null +++ b/extra/p7zip/PKGBUILD @@ -0,0 +1,62 @@ +# $Id: PKGBUILD 143961 2011-11-30 22:27:42Z andrea $ +# 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> + +pkgname=p7zip +pkgver=9.20.1 +pkgrel=6 +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') +optdepends=('wxgtk: GUI' + 'desktop-file-utils: desktop entries') +makedepends=('yasm' 'nasm' 'wxgtk') +options=('!makeflags') +source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}_${pkgver}_src_all.tar.bz2" + '7zFM.desktop') +sha1sums=('1cd567e043ee054bf08244ce15f32cb3258306b7' + 'f2c370d6f1b286b7ce9a2804e22541b755616a40') + +install=install + +build() { + cd "${srcdir}/${pkgname}_${pkgver}" + + [[ $CARCH = x86_64 ]] \ + && cp makefile.linux_amd64_asm makefile.machine \ + || cp makefile.linux_x86_asm_gcc_4.X makefile.machine + + make all4 OPTFLAGS="${CXXFLAGS}" +} + +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 \ + /usr/share/doc/p7zip/DOCS/unRarLicense.txt + + # Integration with stuff... + install -D GUI/p7zip_32.png "${pkgdir}"/usr/share/icons/hicolor/32x32/apps/p7zip.png + 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/ + + chmod -R u+w "${pkgdir}/usr" +} diff --git a/extra/p7zip/install b/extra/p7zip/install new file mode 100644 index 000000000..7f3cc4358 --- /dev/null +++ b/extra/p7zip/install @@ -0,0 +1,13 @@ +post_install() { + [[ -x usr/bin/update-desktop-database ]] && update-desktop-database -q || true + [[ -x usr/bin/gtk-update-icon-cache ]] && gtk-update-icon-cache -q -t -f usr/share/icons/hicolor || true +} + +post_upgrade() { + post_install +} + + +post_remove() { + post_install +} |