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

pornview-git PKGBUILD

By: arriagga on Nov 25th, 2012  |  syntax: None  |  size: 1.22 KB  |  views: 55  |  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: Jc García @JyoGa  <jyo.garcia@gmail.com>
  2. pkgname=pornview-git
  3. pkgver=20121125
  4. pkgrel=1
  5. pkgdesc="A lightweight image viewer."
  6. url="https://github.com/gentoo/pornview"
  7. arch=('i686' 'x86_64')
  8. license=('GPL')
  9. depends=('gdk-pixbuf')
  10. conflicts=('pornview')
  11. provides=('pornview')
  12.  
  13. _gitroot="git://github.com/gentoo/pornview.git"
  14. _gitname="pornview"
  15.  
  16.  
  17. build() {
  18. mkdir "$srcdir/$pkgname"
  19.     cd "$srcdir/$pkgname"
  20.     msg "Connecting to GIT server ..."
  21.  
  22.     if [ -d $_gitname ] ; then
  23.         cd $_gitname
  24.         git fetch origin
  25.         git merge origin/trunk
  26.         msg "The local files are updated"
  27.     else
  28.  
  29.         git clone $_gitroot $_gitname
  30.     fi
  31.  
  32.     msg "GIT checkout done or server timout"
  33.     msg "Configuring..."
  34. cd "$srcdir/$pkgname/$_gitname"
  35.     ./autogen.sh
  36.     ./configure --prefix=/usr --with-gtk2
  37.     msg "Starting make...."
  38.     make
  39. }
  40.  
  41. package() {
  42.  cd "$srcdir/$pkgname/$_gitname"
  43.  make DESTDIR="$pkgdir" install
  44. cd $pkgdir
  45. mkdir -p usr/share/applications
  46. mkdir usr/share/pixmaps
  47.  mv usr/share/gnome/apps/Graphics/pornview.desktop usr/share/applications/
  48.  mv usr/share/icons/hicolor/48x48/pornview.png usr/share/pixmaps/
  49.  rm -R usr/share/gnome/
  50.  rm -R usr/share/icons/
  51. }
clone this paste RAW Paste Data