template 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Template file for 'cudatext-gtk2-bin'
  2. pkgname=cudatext-gtk2-bin
  3. version=1.109.2.0
  4. revision=1
  5. archs="x86_64"
  6. build_style=meta
  7. hostmakedepends="tar xz"
  8. makedepends=""
  9. depends="gtk+ python3"
  10. short_desc="Cross-platform, heavily customizable text editor"
  11. maintainer="reback00 <reback00@protonmail.com>"
  12. license="MPL-2.0"
  13. homepage="http://www.uvviewsoft.com/cudatext/"
  14. conflicts="cudatext-qt5-bin"
  15. nopie=yes
  16. python_version=3
  17. # NOTE: Due to being that the author selected distribution site
  18. # fosshub.com does not support downloading through any tool, the package
  19. # source files will need to be manually updated by hand inside "files"
  20. # directory.
  21. do_install() {
  22. # Extract the main binary archive
  23. tar xvf "${FILESDIR}/cudatext-linux-gtk2-amd64-${version}.tar.xz" -C "${wrksrc}/"
  24. # Move files/dirs to appropriate places
  25. mkdir -p "${DESTDIR}/usr/bin"
  26. cp "${wrksrc}/cudatext" "${DESTDIR}/usr/bin/"
  27. mkdir -p "${DESTDIR}/usr/share/applications"
  28. cp "${FILESDIR}/cudatext.desktop" "${DESTDIR}/usr/share/applications"
  29. mkdir -p "${DESTDIR}/usr/share/cudatext"
  30. cp -r "${wrksrc}/data" "${DESTDIR}/usr/share/cudatext/"
  31. cp -r "${wrksrc}/py" "${DESTDIR}/usr/share/cudatext/"
  32. cp -r "${wrksrc}/settings_default" "${DESTDIR}/usr/share/cudatext/"
  33. mkdir -p "${DESTDIR}/usr/share/pixmaps"
  34. cp "${wrksrc}/cudatext-512.png" "${DESTDIR}/usr/share/pixmaps/"
  35. }