Guest User

Untitled

a guest
Sep 8th, 2017
495
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Husam Bilal <husam212@gmail.com>
  2.  
  3. pkgname=komorebi
  4. pkgver=2.0
  5. pkgrel=1
  6. pkgdesc="Parallax backgrounds manager"
  7. url="https://github.com/iabem97/komorebi"
  8. depends=("desktop-file-utils" "glib2>=2.38" "gtk3>=3.14" "hicolor-icon-theme" "libgtop")
  9. makedepends=("git" "cmake" "vala" "gendesk")
  10. provides=("komorebi")
  11. license=("GPL")
  12. arch=("x86_64" "i686")
  13. md5sums=("0c72498a4c0c10b00c50fad1ef2f6195")
  14. source=("https://github.com/iabem97/${pkgname}/archive/v${pkgver}.tar.gz")
  15.  
  16. prepare() {
  17. gendesk -f -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" --exec="/usr/bin/komorebi"
  18. gendesk -f -n --pkgname "$pkgname-wallpaper-creator" --pkgdesc "$pkgdesc (wallpaper creator)" --exec="/usr/bin/komorebi-wallpaper-creator"
  19. }
  20.  
  21. build() {
  22. _base_dir="${srcdir}/${pkgname}-${pkgver}"
  23.  
  24. cd "$_base_dir"
  25. sed -i '/$ENV{HOME}/d' CMakeLists.txt
  26. sed -i 's|/System/Applications/|/usr/bin/|g' CMakeLists.txt
  27. sed -i 's|/System/Resources/|/usr/share/|g' CMakeLists.txt
  28.  
  29. find . -type f -name '*.vala' -exec sed -i 's|/System/Resources/|/usr/share/|g' {} \;
  30.  
  31. mkdir -p "$_base_dir/build"
  32. cd "$_base_dir/build"
  33.  
  34. cmake "$_base_dir"
  35. make
  36. }
  37.  
  38. package() {
  39. _base_dir="${srcdir}/${pkgname}-${pkgver}"
  40.  
  41. cd "$_base_dir/build"
  42. make DESTDIR="$pkgdir/" install
  43.  
  44. install -Dm644 "$_base_dir/data/Icons/komorebi.svg" "${pkgdir}/usr/share/pixmaps/${pkgname}.svg"
  45. install -Dm644 "$_base_dir/data/Icons/wallpaper_creator.svg" "${pkgdir}/usr/share/pixmaps/komorebi-wallpaper-creator.svg"
  46.  
  47. install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
  48. install -Dm644 "${srcdir}/${pkgname}-wallpaper-creator.desktop" "${pkgdir}/usr/share/applications/wallpapercreator.desktop"
  49. }
RAW Paste Data