This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Test

By: a guest on Aug 22nd, 2011  |  syntax: None  |  size: 1.59 KB  |  views: 41  |  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: laloch <laloch@atlas.cz>
  2. pkgname=kvpm-svn
  3. _pkgname=kvpm
  4. pkgver=568
  5. pkgrel=1
  6. pkgdesc='KDE4 front end for Linux LVM and Gnu parted'
  7. url='http://kvpm.sourceforge.net'
  8. arch=('i686' 'x86_64')
  9. license=('GPL3')
  10. depends=('kdebase-runtime')
  11. makedepends=('cmake' 'automoc4' 'subversion')
  12. conflicts=('kvpm')
  13. provides=('kvpm')
  14. source=()
  15. md5sums=()
  16. install=${pkgname}.install
  17.  
  18. _svntrunk='https://kvpm.svn.sourceforge.net/svnroot/kvpm/trunk'
  19. _svnmod='kvpm'
  20.  
  21. build() {
  22.   cd ${srcdir}
  23.   if [ -d ${_svnmod} ]; then
  24.     (cd ${_svnmod} && svn up -r ${pkgver})
  25.   else
  26.     svn co ${_svntrunk} -r ${pkgver} ${_svnmod}
  27.   fi
  28.  
  29.   msg2 'SVN checkout done or server timeout'
  30.   msg2 'Starting make...'
  31.   if [ -d build ]; then
  32.     msg2 'Clean previous build directory'
  33.     rm -rf build
  34.   fi
  35.   mkdir build
  36.   cp -r ${_svnmod}/* build
  37.   cd build/${_pkgname}
  38.   cmake \
  39.     -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
  40.     -DCMAKE_BUILD_TYPE=Release
  41.   make
  42.   cd ..
  43.   echo "[Desktop Entry]
  44. GenericName=LVM Frontend
  45. Name=KVPM
  46. Comment=KDE Volume Partition Manager
  47. Exec=kdesu kvpm
  48. Icon=kvpm
  49. X-KDE-SubstituteUID=true
  50. Type=Application
  51. Categories=System;KDE;" > ${_pkgname}.desktop
  52. }
  53.  
  54. package() {
  55.   cd ${srcdir}/build/${_pkgname}
  56.   make DESTDIR=${pkgdir} install
  57.   cd ..
  58.   install -Dm 644 kvpm_16x16.png ${pkgdir}//usr/share/icons/hicolor/16x16/apps/${_pkgname}.png
  59.   install -Dm 644 kvpm_32x32.png ${pkgdir}//usr/share/icons/hicolor/32x32/apps/${_pkgname}.png
  60.   install -Dm 644 kvpm_64x64.png ${pkgdir}//usr/share/icons/hicolor/64x64/apps/${_pkgname}.png
  61.   install -Dm 644 ${_pkgname}.desktop ${pkgdir}//usr/share/applications/${_pkgname}.desktop
  62. }
clone this paste RAW Paste Data