Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

file-roller2

By: a guest on May 10th, 2011  |  syntax: Bash  |  size: 2.21 KB  |  views: 108  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Spyros Stathopoulos <foucault.online@gmail.com>
  2. # Contributor: Alessio Sergi <asergi at archlinux dot us>
  3.  
  4. pkgname=file-roller2
  5. _pkgname=file-roller
  6. pkgver=2.32.2
  7. pkgrel=3
  8. pkgdesc="Archive manipulator for GNOME"
  9. arch=('i686' 'x86_64')
  10. url="http://www.gnome.org"
  11. license=('GPL')
  12. depends=('desktop-file-utils' 'gconf' 'gtk2' 'hicolor-icon-theme')
  13. makedepends=('gnome-doc-utils' 'intltool')
  14. optdepends=('arj: ARJ archiver'
  15.             'p7zip: 7zip compression utility'
  16.             'unace: extraction tool for ace archive format'
  17.             'unrar: the RAR uncompression program'
  18.             'unzip: unpacks .zip archives'
  19.             'xz: managing LZMA and XZ compressed files'
  20.             'zip: creates PKZIP-compatible .zip files')
  21. provides=(${_pkgname})
  22. conflicts=(${_pkgname})
  23. options=('!libtool' '!emptydirs')
  24. install=${pkgname}.install
  25. source=(http://ftp.gnome.org/pub/gnome/sources/${_pkgname}/${pkgver%.*}/${_pkgname}-${pkgver}.tar.bz2)
  26. sha256sums=('3ddbe4e4134eab4ff8e97789a1626aec6cbc588190f2f520850d0697037e5755')
  27.  
  28. build() {
  29.   cd "${srcdir}/${_pkgname}-${pkgver}"
  30.  
  31.   ./configure --prefix=/usr --sysconfdir=/etc \
  32.               --libexecdir=/usr/lib/file-roller \
  33.               --localstatedir=/var --disable-static \
  34.               --disable-scrollkeeper \
  35.               --disable-schemas-install \
  36.               --disable-packagekit
  37.   make
  38. }
  39.  
  40. package() {
  41.   cd "${srcdir}/${_pkgname}-${pkgver}"
  42.  
  43.   make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install
  44.  
  45.   install -d -m755 "${pkgdir}/usr/share/gconf/schemas"
  46.   gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${_pkgname}.schemas" \
  47.     --domain "${_pkgname}" "${pkgdir}"/etc/gconf/schemas/*.schemas
  48.   rm -f "${pkgdir}"/etc/gconf/schemas/*.schemas
  49. }
  50.  
  51.  
  52.  
  53. ######
  54. file-roller2.install
  55. ######
  56.  
  57. pkgname=file-roller
  58.  
  59. post_install() {
  60.   usr/sbin/gconfpkg --install ${pkgname}
  61.   gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
  62.   update-desktop-database -q
  63. }
  64.  
  65. pre_upgrade() {
  66.   pre_remove
  67. }
  68.  
  69. post_upgrade() {
  70.   post_install
  71. }
  72.  
  73. pre_remove() {
  74.   usr/sbin/gconfpkg --uninstall ${pkgname}
  75. }
  76.  
  77. post_remove() {
  78.   gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
  79.   update-desktop-database -q
  80. }