Various compilation scripts & patches for Linux programs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.4 KiB

  1. pkgname=kdegraphics-dreamdesktop
  2. _pkgname=plasma-video-wallpaper
  3. pkgver=06012014
  4. pkgrel=1
  5. pkgdesc="Animated wallpaper for KDE 4 environment"
  6. arch=('any')
  7. url="https://github.com/Fincer/Plasma-Wallpaper-DreamDesktop" ## Developed by Korneliusz Jarzębski
  8. license=('GPL')
  9. depends=('kdebase-workspace' 'ffmpeg')
  10. source=(crashfix.patch)
  11. _gitname="Plasma-Wallpaper-DreamDesktop"
  12. _gitroot="https://github.com/Fincer/${_gitname}.git"
  13. build() {
  14. cd $srcdir
  15. msg "Connecting to GIT (${_gitroot}) ..."
  16. if [ -d $_gitname ]; then
  17. cd $_gitname && git pull origin
  18. msg "The local files of ${_gitname} were updated."
  19. else
  20. git clone $_gitroot $_gitname
  21. fi
  22. msg "GIT checkout done or server timeout"
  23. cd $srcdir/${_gitname}
  24. patch -Np1 -i "$srcdir/crashfix.patch"
  25. mkdir build
  26. cd build
  27. cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
  28. make all
  29. }
  30. package() {
  31. mkdir -p $pkgdir/usr/lib/kde4/
  32. mkdir -p $pkgdir/usr/share/kde4/services/
  33. mkdir -p $pkgdir/usr/share/doc/$pkgname
  34. mkdir -p $pkgdir/usr/share/kde4/apps/dreamdesktop/thumbs/
  35. chmod 755 $srcdir/${_gitname}/thumbs/default.png
  36. mv $srcdir/${_gitname}/build/lib/dreamdesktop.so $pkgdir/usr/lib/kde4/
  37. mv $srcdir/${_gitname}/dreamdesktop.desktop $pkgdir/usr/share/kde4/services/
  38. mv $srcdir/${_gitname}/README.ENGLISH $pkgdir/usr/share/doc/$pkgname/
  39. mv $srcdir/${_gitname}/thumbs/default.png $pkgdir/usr/share/kde4/apps/dreamdesktop/thumbs/
  40. }
  41. md5sums=('acd498b8ad87989469912f35ce396c9e')