talimat 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Tanım: Ücretsiz GTK2 çapraz platform dosya arşivleyici (kaynaktan derler)
  2. # URL: http://peazip.org
  3. # Paketçi: yasarciv67
  4. # Gerekler: lazarus-gtk2 icoutils gtk2 desktop-file-utils balz lpaq paq8o p7zip upx zpaq quad unace
  5. isim=peazip-kaynak
  6. surum=6.5.1
  7. devir=1
  8. kaynak=(https://github.com/giorgiotani/PeaZip/releases/download/$surum/peazip-$surum.src.zip
  9. https://aur.archlinux.org/cgit/aur.git/plain/peazip.install?h=peazip-gtk2-build)
  10. derle() {
  11. cd peazip-$surum.src
  12. lazbuild --lazarusdir=/usr/lib/lazarus --widgetset=gtk2 --build-all project_pea.lpi && [ -f pea ]
  13. lazbuild --lazarusdir=/usr/lib/lazarus --widgetset=gtk2 --build-all project_gwrap.lpi && [ -f pealauncher ]
  14. lazbuild --lazarusdir=/usr/lib/lazarus --widgetset=gtk2 --build-all project_peach.lpi && [ -f peazip ]
  15. icotool -x -w 256 "$SRC/peazip-$surum.src/res/icons/PeaZip.ico" -o "$SRC/peazip.png"
  16. _pkgres="$PKG/opt/peazip/res"
  17. install -Dm755 "$SRC/peazip-$surum.src/peazip" "$PKG/opt/peazip/peazip"
  18. install -Dm755 "$SRC/peazip-$surum.src/pea" "$_pkgres/pea"
  19. install -Dm755 "$SRC/peazip-$surum.src/pealauncher" "$_pkgres/pealauncher"
  20. install -Dm644 "$SRC/peazip.png" "$PKG/usr/share/pixmaps/peazip.png"
  21. cd "$SRC/peazip-$surum.src/res"
  22. for _file in *.txt icons/*.ico lang/* themes/{*-embedded/*,*.7z}; do
  23. _octal=$(stat -c "%a" "$_file")
  24. install -Dm"${_octal}" "$_file" "$_pkgres/$_file"
  25. done
  26. cd $SRC
  27. ln -sf -T "/usr/lib/p7zip" "$_pkgres/7z"
  28. for _file in arc/{arc,marc} quad/{balz,quad} lpaq/lpaq8 paq/paq8o unace/unace upx/upx zpaq/zpaq; do
  29. install -d "$_pkgres/$(dirname $_file)/"
  30. ln -sf -T "/usr/bin/$(basename $_file)" "$_pkgres/$_file"
  31. done
  32. install -d "$PKG/usr/bin/"
  33. for _file in /opt/peazip/{peazip,res/pea,res/pealauncher}; do
  34. ln -sf "$_file" "$PKG/usr/bin/$(basename $_file)"
  35. done
  36. desktop-file-install --dir="$PKG/usr/share/applications/" --set-icon="peazip"\
  37. --remove-key="Name[en_US]" "$SRC/peazip-$surum.src/FreeDesktop_integration/peazip.desktop"
  38. }