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

Test

By: a guest on Aug 23rd, 2011  |  syntax: None  |  size: 1.48 KB  |  hits: 39  |  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=572
  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.  
  24.   if [ -d ${_svnmod} ]; then
  25.     cd ${_svnmod} && svn up -r ${pkgver}
  26.   else
  27.     svn co ${_svntrunk} -r ${pkgver} ${_svnmod}
  28.   fi
  29.   msg2 'SVN checkout done or server timeout'
  30.  
  31.   msg2 'Starting make...'
  32.   rm -rf ${_svnmod}/docbook
  33.   if [ -d build ]; then
  34.     msg2 'Clean previous build directory'
  35.     rm -rf build
  36.   fi
  37.   mkdir build
  38.   cp -r ${_svnmod}/* build
  39.   cd build/${_pkgname}
  40.   cmake \
  41.     -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
  42.     -DCMAKE_BUILD_TYPE=Release
  43.   make
  44.   cd ..
  45.   echo "[Desktop Entry]
  46. GenericName=LVM Frontend
  47. Name=KVPM
  48. Comment=KDE Volume Partition Manager
  49. Exec=kdesu kvpm
  50. Icon=kvpm
  51. X-KDE-SubstituteUID=true
  52. Type=Application
  53. Categories=System;KDE;" > ${_pkgname}.desktop
  54. }
  55.  
  56. package() {
  57.   cd ${srcdir}/build/${_pkgname}
  58.   make DESTDIR=${pkgdir} install
  59.   cd ..
  60.   for size in 16 32 64; do
  61.     install -Dm 644 kvpm_${size}x${size}.png ${pkgdir}//usr/share/icons/hicolor/${size}x${size}/apps/${_pkgname}.png
  62.   done
  63.   install -Dm 644 ${_pkgname}.desktop ${pkgdir}//usr/share/applications/${_pkgname}.desktop
  64. }