Date: Wednesday, July 20, 2011 @ 14:53:53 Author: bisson Revision: 132132
add GUI Added: p7zip/trunk/7zFM.desktop p7zip/trunk/install Modified: p7zip/trunk/PKGBUILD --------------+ 7zFM.desktop | 9 +++++++++ PKGBUILD | 33 ++++++++++++++++++++++++--------- install | 13 +++++++++++++ 3 files changed, 46 insertions(+), 9 deletions(-) Added: 7zFM.desktop =================================================================== --- 7zFM.desktop (rev 0) +++ 7zFM.desktop 2011-07-20 18:53:53 UTC (rev 132132) @@ -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 Modified: PKGBUILD =================================================================== --- PKGBUILD 2011-07-20 16:03:53 UTC (rev 132131) +++ PKGBUILD 2011-07-20 18:53:53 UTC (rev 132132) @@ -7,15 +7,20 @@ pkgname=p7zip pkgver=9.20.1 -pkgrel=2 +pkgrel=3 pkgdesc='Command-line version of the 7zip compressed file archiver' +url='http://p7zip.sourceforge.net/' +license=('GPL') arch=('i686' 'x86_64') -license=('GPL') -url='http://p7zip.sourceforge.net/' -makedepends=('yasm' 'nasm') -source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}_${pkgver}_src_all.tar.bz2") -sha1sums=('1cd567e043ee054bf08244ce15f32cb3258306b7') +optdepends=('wxgtk: GUI') +makedepends=('yasm' 'nasm' 'wxgtk') +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}" @@ -23,7 +28,7 @@ && cp makefile.linux_amd64_asm makefile.machine \ || cp makefile.linux_x86_asm_gcc_4.X makefile.machine - make all3 OPTFLAGS="${CXXFLAGS}" + make all4 OPTFLAGS="${CXXFLAGS}" } package() { @@ -34,6 +39,16 @@ DEST_HOME="/usr" \ DEST_MAN="/usr/share/man" - chmod -R u+w "${pkgdir}"/usr/share/doc/ - install -Dm755 contrib/VirtualFileSystemForMidnightCommander/u7z "${pkgdir}"/usr/lib/mc/extfs.d/u7z + # Integration with stuff... + install -D contrib/VirtualFileSystemForMidnightCommander/u7z "${pkgdir}"/usr/lib/mc/extfs.d/u7z + 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" } Added: install =================================================================== --- install (rev 0) +++ install 2011-07-20 18:53:53 UTC (rev 132132) @@ -0,0 +1,13 @@ +post_install() { + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install +} + + +post_remove() { + post_install +}