Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

rekonq-git

By: a guest on Dec 11th, 2010  |  syntax: Bash  |  size: 1.28 KB  |  hits: 106  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: (epsilom) Xavier Corredor <xavier.corredor.llano (at) gmail.com>
  2.  
  3. pkgname=rekonq-git
  4. _realname=rekonq
  5. pkgver=20101211
  6. pkgrel=1
  7. pkgdesc="A WebKit based web browser for KDE"
  8. arch=('i686' 'x86_64')
  9. url="http://rekonq.kde.org"
  10. license=('GPL')
  11. depends=('kdebase-keditbookmarks')
  12. makedepends=('automoc4' 'cmake' 'docbook-xsl' 'git')
  13. provides=(${_realname})
  14. conflicts=(${_realname})
  15. install=${pkgname}.install
  16. source=('patch')
  17. md5sums=('86515d857298456cb34d60588ae2311c')
  18.  
  19. _gitroot="git://git.kde.org/${_realname}.git"
  20. _gitname=${_realname}
  21.  
  22. build() {
  23.   cd ${srcdir}
  24.  
  25.   msg "Connecting to GIT server...."
  26.  
  27.   if [ -d ${_gitname} ]; then
  28.     cd ${_gitname} && git pull origin
  29.     msg "The local files are updated."
  30.   else
  31.     git clone ${_gitroot}
  32.   fi
  33.  
  34.   msg "GIT checkout done or server timeout"
  35.   msg "Starting make..."
  36.  
  37.   rm -rf ${srcdir}/build
  38.   git clone ${srcdir}/${_gitname} ${srcdir}/build
  39.   cd ${srcdir}/build
  40.  
  41.   # patch and run localization files
  42.   patch -Np1 -i ${srcdir}/patch
  43.  
  44.   export RK_SRCS="${srcdir}/build"
  45.   cd scripts
  46.   chmod +x download_i18n.sh
  47.   ./download_i18n.sh
  48.   cd ..
  49.  
  50.   cmake . -DCMAKE_BUILD_TYPE=Release \
  51.         -DCMAKE_INSTALL_PREFIX=/usr
  52.   make
  53. }
  54.  
  55. package() {
  56.   cd ${srcdir}/build
  57.   make DESTDIR=${pkgdir} install
  58. }