talimat 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Tanım: Linux Sistem Doktoru ve İzleme
  2. # URL: https://github.com/oguzhaninan/Stacer
  3. # Paketçi: Cihan_Alkan
  4. # Gerekler: qt5
  5. # Grup: sistem
  6. isim=stacer
  7. surum=1.0.8
  8. devir=1
  9. kaynak=(https://github.com/oguzhaninan/Stacer/archive/v1.0.8.tar.gz::$isim-$surum.tar.gz)
  10. derle() {
  11. export QT_PLUGIN_PATH=$QTDIR/plugins
  12. export LD_LIBRARY_PATH=$QTDIR/lib
  13. cd "Stacer-$surum"
  14. P_DIR=$(pwd)
  15. DIST_DIR=dist
  16. BUILD_DIR=build
  17. #clean
  18. rm -rf dist
  19. mkdir -p $DIST_DIR/$BUILD_DIR
  20. cd $DIST_DIR/$BUILD_DIR
  21. #build
  22. $QTDIR/usr/bin/qmake-qt5 -spec linux-g++ "CONFIG += release" $SRC/Stacer-$surum/Stacer.pro && make
  23. cd $SRC/Stacer-$surum/$DIST_DIR/$BUILD_DIR/stacer-core && make
  24. cd $SRC/Stacer-$surum/$DIST_DIR/$BUILD_DIR/stacer && make
  25. mkdir $SRC/Stacer-$surum/$DIST_DIR/$BUILD_DIR/stacer/lib
  26. cp $SRC/Stacer-$surum/$DIST_DIR/$BUILD_DIR/stacer-core/libstacer-core.so.1.0.0 $SRC/Stacer-$surum/$DIST_DIR/$BUILD_DIR/stacer/lib/libstacer-core.so.1
  27. cd $SRC/Stacer-$surum
  28. lrelease stacer/stacer.pro
  29. mkdir $SRC/Stacer-$surum/$DIST_DIR/$BUILD_DIR/stacer/translations
  30. mv $SRC/Stacer-$surum/translations/*.qm $SRC/Stacer-$surum/$DIST_DIR/$BUILD_DIR/stacer/translations
  31. rm -rf $SRC/Stacer-$surum/$DIST_DIR/$BUILD_DIR/stacer-core
  32. find $SRC/Stacer-$surum/$DIST_DIR/$BUILD_DIR/stacer \( -name "moc_*" -or -name "*.o" -or -name "qrc_*" -or -name "Makefile*" -or -name "*.a" -or -name "*.h" \) -exec rm {} \;
  33. mkdir -p $PKG/usr/bin
  34. mkdir -p $PKG/usr/share/pixmaps
  35. mkdir -p $PKG/usr/share/applications
  36. mkdir -p $PKG/usr/share/stacer
  37. mkdir -p $PKG/usr/lib
  38. mkdir -p $PKG/usr/share/icons
  39. cp -R $SRC/Stacer-$surum/icons/hicolor/128x128/apps $PKG/usr/share/pixmaps/stacer.png
  40. cp -R $SRC/Stacer-$surum/stacer.desktop $PKG/usr/share/applications/stacer.desktop
  41. cp -R $SRC/Stacer-$surum/$DIST_DIR/$BUILD_DIR/stacer/lib/* $PKG/usr/lib/
  42. cp -R $SRC/Stacer-$surum/icons/* $PKG/usr/share/icons/
  43. cp -R $SRC/Stacer-$surum/$DIST_DIR/$BUILD_DIR/stacer/* $PKG/usr/share/stacer/
  44. ln -s /usr/share/stacer/stacer "$PKG/usr/bin/stacer"
  45. }