GBPASTE

Userdata Nick: Splex
Current Language: Bash   
Description
Code
  1. # Contributor: Lex Black <autumn-wind at web dot de>
  2. # Contributor: Jérémie Astor <astor.jeremie@wanadoo.fr>
  3.  
  4. pkgname=xombrero-git
  5. pkgver=20121219
  6. pkgrel=1
  7. pkgdesc="minimalist web browser"
  8. arch=('i686' 'x86_64')
  9. url="http://opensource.conformal.com/wiki/xombrero"
  10. license=('custom:ISC')
  11. depends=('webkitgtk3' 'libbsd' 'desktop-file-utils')
  12. makedepends=('git')
  13. provides=('xombrero')
  14. conflicts=('xxxterm' 'xombrero' 'xombrero3')
  15.  
  16. _gitroot=git://opensource.conformal.com/xombrero.git
  17. _gitname=xombrero
  18.  
  19. build() {
  20.         cd "$srcdir"
  21.         msg "Connecting to GIT server...."
  22.  
  23.         if [[ -d "$srcdir/$_gitname" ]]; then
  24.                 cd "$_gitname" && git pull origin
  25.                 msg "The local files are updated."
  26.         else
  27.                 git clone --depth 1 "$_gitroot"
  28.         fi
  29.  
  30.         msg "GIT checkout done or server timeout"
  31.         msg "Starting build..."
  32.  
  33.         cd "$srcdir/$_gitname"
  34.         sed -i 's|/etc/ssl/cert.pem|/etc/ssl/certs/ca-certificates.crt|' xombrero.conf
  35.         sed -i 's|https://www.cyphertite.com|http://archlinux.org|' xombrero.{c,conf}
  36.         sed -i 's|/usr/local|/usr|' xombrero.{h,conf}
  37.         cd "linux"
  38.         sed -i 's|LIBS= gtk+-2.0|& javascriptcoregtk-1.0|' Makefile
  39.         sed -i 's/gnutls/& libbsd/' Makefile
  40.         make javascript.h
  41.         make PREFIX="/usr"
  42. }
  43.  
  44. package() {
  45.         cd "$srcdir/$_gitname/"
  46.         make PREFIX="/usr" DESTDIR="$pkgdir" install -C linux GTK-VERSION=gtk3
  47.         install -Dm644 xombrero.conf "$pkgdir/etc/xombrero.conf"
  48. }
Download as file for Windows or for Linux/OSX

© 2014 by Sascha "Mac Fly" Bürk - Imprint

german-bash.org - german-blog.org - gbimg.org - gehirnschleimschmiede.de