Want more features on Pastebin? Sign Up, it's FREE!
Guest

nemo-fileroller PKGBUILD

By: ffsinit on Jan 17th, 2013  |  syntax: None  |  size: 1.24 KB  |  views: 85  |  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. _pkgname=nemo-fileroller
  2. pkgname=${_pkgname}-git
  3. pkgver=20130119
  4. pkgrel=1
  5. pkgdesc="Nemo file rollerextension"
  6. arch=('i686' 'x86_64')
  7. url="https://github.com/linuxmint/nemo-extensions"
  8. license=('GPL')
  9. source=('configure.in_fix.patch')
  10. depends=('libnotify' 'nemo-fm' 'file-roller')
  11. options=('!libtool' '!emptydirs')
  12.  
  13. _gitroot=git://github.com/linuxmint/nemo-extensions.git
  14. _gitname=nemo-extensions
  15.  
  16. build() {
  17.   msg "Connecting to GIT server...."   
  18.  
  19.   if [[ -d "$_gitname" ]]; then
  20.     cd "$_gitname" && git pull origin && cd ..
  21.     msg "The local files are updated."
  22.   else
  23.     git clone "$_gitroot" "$_gitname"
  24.   fi
  25.  
  26.   msg "GIT checkout done or server timeout"
  27.   msg "Starting build..."
  28.  
  29.   [ -d "$_gitname-build" ] && rm -rf "$_gitname-build"
  30.   git clone "$_gitname" "$_gitname-build"
  31.   cd "$_gitname-build"/${_pkgname}
  32.  
  33.   ## I think they started with the nemo-dropbox source, so there
  34.   ## are some unnecessary python dependencies
  35.   patch -uNp2 -r- -i ${srcdir}/configure.in_fix.patch
  36.   autoreconf -fi
  37.  
  38.   ./configure --prefix=/usr --sysconfdir=/etc
  39.   make
  40. }
  41.  
  42. package() {
  43.   cd "$_gitname-build"/${_pkgname}
  44.   make DESTDIR="${pkgdir}" install
  45. }
  46.  
  47. sha256sums=('aae6d8047e6901d28b62f1b2e11da73b909ee06976284c54a94cb1d9b0135c67')
clone this paste RAW Paste Data