template 1005 B

1234567891011121314151617181920212223242526272829303132
  1. # Template file for 'bogofilter'
  2. pkgname=bogofilter
  3. version=1.2.5
  4. revision=2
  5. build_style=gnu-configure
  6. configure_args="--sysconfdir=/etc/${pkgname} --with-database=sqlite"
  7. hostmakedepends="perl"
  8. makedepends="gsl-devel sqlite-devel"
  9. depends="perl"
  10. short_desc="Fast Bayesian spam filtering tool"
  11. maintainer="Gour <gour@atmarama.net>"
  12. license="GPL-3.0-only"
  13. homepage="http://bogofilter.sourceforge.net"
  14. distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
  15. checksum=3248a1373bff552c500834adbea4b6caee04224516ae581fb25a4c6a6dee89ea
  16. conf_files="/etc/bogofilter/bogofilter.cf"
  17. # Liberation
  18. # Some code has been taken and modified from:
  19. # https://git.parabola.nu/abslibre.git/tree/libre/bogofilter/PKGBUILD
  20. post_patch() {
  21. # Several of the documentation files are nonfree
  22. rm doc/bogofilter-SA-{2005-0{1,2},2010-01}
  23. }
  24. post_install() {
  25. vinstall bogofilter.cf.example 644 etc/bogofilter bogofilter.cf
  26. rm ${PKGDESTDIR}/etc/bogofilter/bogofilter.cf.example
  27. vcopy contrib usr/share/contrib
  28. }