talimat 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Tanım: Grafiksel oturum açma yardımcı programı
  2. # URL: http://sourceforge.net/projects/slim.berlios
  3. # Paketçi: milisarge
  4. # Gerekler: xorg-xauth libjpeg-turbo libpng cmake xorg-libxft
  5. # Grup: masaüstü
  6. isim=slim
  7. surum=2.0
  8. devir=3
  9. kaynak=(http://kaynaklar.milislinux.org/slim-$surum.tar.gz
  10. panel.png
  11. https://raw.githubusercontent.com/yakar/milis-linux-wallpapers/master/milis-linux-tree.png
  12. slim.conf
  13. CMakeLists.txt.patch
  14. slim-1.3.6_freetype-2.5.1.diff
  15. slim.logrotate
  16. slim.theme)
  17. derle() {
  18. cd $isim-$surum
  19. patch -p0 < $SRC/CMakeLists.txt.patch
  20. patch -p1 < $SRC/slim-1.3.6_freetype-2.5.1.diff
  21. # Fix location of man-pages
  22. sed "s/share\/man/man/" -i CMakeLists.txt
  23. sed -i "s/DESTINATION lib/DESTINATION lib64/" CMakeLists.txt
  24. mkdir -p build
  25. cd build
  26. cmake \
  27. -DCMAKE_INSTALL_PREFIX=/usr \
  28. -DUSE_CONSOLEKIT=no \
  29. -DCMAKE_BUILD_TYPE=Release ..
  30. make
  31. make install DESTDIR=$PKG
  32. cd ..
  33. mv $SRC/slim.conf $PKG/etc/slim.conf
  34. mkdir -p $PKG/etc/logrotate.d
  35. cat $SRC/slim.logrotate > $PKG/etc/logrotate.d/slim
  36. # Kill the incorrectly-placed (and useless anyway) systemd stuff
  37. rm -rf $PKG/usr/usr
  38. # Kill systemd stuff
  39. rm -rf $PKG/lib
  40. find $PKG/usr/man -type f -exec gzip -9 {} \;
  41. for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
  42. # Remove slimlock as we don't build it
  43. rm $PKG/usr/man/man1/slimlock.1.gz
  44. rm $PKG/etc/init.d/slim.init
  45. rm -rf $PKG/usr/share/slim/themes/xamplar
  46. rm -rf $PKG/usr/man/
  47. install -d $PKG/usr/share/slim/themes/milis
  48. cp $SRC/panel.png $PKG/usr/share/slim/themes/milis/
  49. cp $SRC/milis-linux-tree.png $PKG/usr/share/slim/themes/milis/background.png
  50. cp $SRC/slim.theme $PKG/usr/share/slim/themes/milis/
  51. chmod 0644 $PKG/usr/share/slim/themes/milis/*
  52. cd /sources/milis.git/ayarlar/servisler
  53. make DESTDIR=$PKG kur-slim
  54. }