talimat 649 B

12345678910111213141516171819202122
  1. # Tanım: Gereksiz dosyaları silerek diskte yer açar.
  2. # URL: https://www.bleachbit.org/
  3. # Paketçi: halityilmaz1982
  4. # Gerekler: python-gtk desktop-file-utils gtk-update-icon-cache hicolor-icon-theme
  5. # Grup: sistem
  6. isim=bleachbit
  7. surum=2.0
  8. devir=1
  9. kaynak=(https://downloads.sourceforge.net/$isim/$isim-$surum.tar.bz2)
  10. derle() {
  11. cd $isim-$surum
  12. for file in $(find . -name '*.py' -print); do
  13. sed -i -e 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' \
  14. -e 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' "$file"
  15. done
  16. sed -i 's/python/python2/g' Makefile
  17. make prefix=/usr DESTDIR="$PKG" PYTHON=python2 install
  18. }