l_template_changes.patch 649 B

12345678910111213141516171819202122
  1. --- template.orig 2020-11-05 21:21:21.963999000 +0600
  2. +++ template 2020-11-06 00:39:42.816447000 +0600
  3. @@ -45,2 +45,18 @@ fi
  4. +# Liberation
  5. +# Some of the code is taken from:
  6. +# https://git.parabola.nu/abslibre.git/tree/libre/opencv/PKGBUILD
  7. +post_patch() {
  8. + # remove nonfree Milky icons
  9. + rm -rv modules/highgui/src/files_Qt/Milky
  10. +
  11. + # remove nonfree lena.png and lena.jpg images
  12. + rm -v $(find . -iname '*lena*')
  13. +
  14. + cd "${XBPS_BUILDDIR}/opencv_contrib-${version}"
  15. +
  16. + # remove nonfree SIFT and SURF algorithms that are patented in some countries and have some other limitations on the use
  17. + rm -rv modules/xfeatures2d
  18. +}
  19. +
  20. post_install() {