diff options
author | Tomasz Maciej Nowak | 2015-12-12 11:02:24 +0100 |
---|---|---|
committer | Tomasz Maciej Nowak | 2015-12-12 11:02:24 +0100 |
commit | 4d477646bd4748e1b2c583af3d54c40ae66aabdf (patch) | |
tree | ee87c4de24618be0ecd8fae84cca54c8de4a1f5b | |
download | aur-4d477646bd4748e1b2c583af3d54c40ae66aabdf.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 27 | ||||
-rw-r--r-- | 7zFM.desktop | 11 | ||||
-rw-r--r-- | PKGBUILD | 69 | ||||
-rw-r--r-- | p7zip-gui.install | 14 |
4 files changed, 121 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a2cde0eba91e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,27 @@ +# Generated by mksrcinfo v8 +# Sat Dec 12 10:02:07 UTC 2015 +pkgbase = p7zip-gui + pkgdesc = Graphic user interface (alpha quality) for the 7zip file archiver + pkgver = 9.38.1 + pkgrel = 1 + url = http://p7zip.sourceforge.net/ + install = p7zip-gui.install + arch = i686 + arch = x86_64 + license = GPL + license = custom + depends = p7zip + depends = gcc-libs + depends = sh + depends = wxgtk + optdepends = desktop-file-utils: desktop entries + options = !makeflags + source = http://downloads.sourceforge.net/project/p7zip/p7zip-gui/9.38.1/p7zip_9.38.1_src_all.tar.bz2 + source = 7zFM.desktop + sha256sums = fd5019109c9a1bf34ad3257d37a6853eae8151ff50345f0a3ffba7d8c5fdb995 + sha256sums = 8cb662ccbacd1badc2c41ff00618c53d1c7fb8bca5472cca4ac7bd7f619acb27 + makedepends_i686 = nasm + makedepends_x86_64 = yasm + +pkgname = p7zip-gui + diff --git a/7zFM.desktop b/7zFM.desktop new file mode 100644 index 000000000000..6eb158e0eb40 --- /dev/null +++ b/7zFM.desktop @@ -0,0 +1,11 @@ +[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 +NoDisplay=false +MimeType=application/gzip;application/x-7z-compressed;application/x-7z-compressed-tar;application/x-arj;application/x-bzip;application/x-bzip-compressed-tar;application/x-bzip1;application/x-bzip1-compressed-tar;application/x-cabinet;application/x-cd-image;application/x-compress;application/x-compressed-tar;application/x-cpio;application/x-deb;application/x-gtar;application/x-gzip;application/x-gzpostscript;application/x-lha;application/x-lhz;application/x-lzma;application/x-lzma-compressed-tar;application/x-ms-wim;application/x-rar;application/x-rar-compressed;application/x-rpm;application/x-tar;application/x-xz;application/x-xz-compressed-tar;application/x-zip;application/x-zip-compressed;application/zip;application/vnd.ms-cab-compressed; diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cd5dac1819dd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,69 @@ +# Maintainer: Tomasz Maciej Nowak <com[dot]gmail[at]tmn505> +# Contributor: Evangelos Foutras <evangelos@foutrelis.com> +# Contributor: Gaetan Bisson <bisson@archlinux.org> +# 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> + +pkgname=p7zip-gui +_srcname=p7zip +pkgver=9.38.1 +pkgrel=1 +pkgdesc='Graphic user interface (alpha quality) for the 7zip file archiver' +url='http://p7zip.sourceforge.net/' +license=('GPL' 'custom') +arch=('i686' 'x86_64') +depends=('p7zip' 'gcc-libs' 'sh' 'wxgtk') +optdepends=('desktop-file-utils: desktop entries') +makedepends_i686=('nasm') +makedepends_x86_64=('yasm') +options=(!makeflags) +install=$pkgname.install +source=("http://downloads.sourceforge.net/project/${_srcname}/${pkgname}/${pkgver}/${_srcname}_${pkgver}_src_all.tar.bz2" + '7zFM.desktop') +sha256sums=('fd5019109c9a1bf34ad3257d37a6853eae8151ff50345f0a3ffba7d8c5fdb995' + '8cb662ccbacd1badc2c41ff00618c53d1c7fb8bca5472cca4ac7bd7f619acb27') + +prepare() { + cd "${srcdir}/${_srcname}_${pkgver}" + + if [[ $CARCH = x86_64 ]]; then + cp makefile.linux_amd64_asm makefile.machine + else + cp makefile.linux_x86_asm_gcc_4.X makefile.machine + fi + + sed -i 's/x86_64-linux-gnu//g' CPP/7zip/*/*/*.depend + + rm GUI/kde4/p7zip_compress.desktop # FS#43766 +} + +build() { + cd "${srcdir}/${_srcname}_${pkgver}" + make all4 OPTFLAGS="${CFLAGS}" +} + +package() { + cd "${srcdir}/${_srcname}_${pkgver}" + make install \ + DEST_DIR="${pkgdir}" \ + DEST_HOME="/usr" \ + DEST_MAN="/usr/share/man" + + # remove files provided by p7zip package + rm -fR "${pkgdir}/"{usr/bin,usr/lib/p7zip}/{7z,7za,7zr,7z.so,7zCon.sfx,Codecs} + rm -R "${pkgdir}/usr/share/"{doc,man} + + install -Dm644 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" + install -d "${pkgdir}/usr/share/kservices5/ServiceMenus" + cp GUI/kde4/* "${pkgdir}/usr/share/kservices5/ServiceMenus" + cp ../7zFM.desktop "${pkgdir}/usr/share/applications" + ln -s 7zCon.sfx "${pkgdir}/usr/lib/p7zip/7z.sfx" + install -d "${pkgdir}/usr/share/doc/p7zip/DOC/MANUAL" + cp -r GUI/help/fm "${pkgdir}/usr/share/doc/p7zip/DOC/MANUAL" + + chmod -R a+r,u+w,a+X "${pkgdir}/usr" +} diff --git a/p7zip-gui.install b/p7zip-gui.install new file mode 100644 index 000000000000..abbf119ac2a5 --- /dev/null +++ b/p7zip-gui.install @@ -0,0 +1,14 @@ +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 + [[ -x usr/bin/kbuildsycoca5 ]] && kbuildsycoca5 &> /dev/null || true +} + +post_upgrade() { + post_install +} + + +post_remove() { + post_install +} |