# Maintainer: Erich Eckner pkgname=fetchmail pkgver=6.5.1 pkgrel=1 pkgdesc="A remote-mail retrieval utility" arch=('i486' 'i686' 'pentium4' 'x86_64') url="http://www.fetchmail.info" license=('GPL') _pinned_dependencies=( 'glibc>=2.31' 'openssl=3.4.0' ) depends=("${_pinned_dependencies[@]}") makedepends=('python') optdepends=('tk: for using fetchmailconf') options=('!makeflags') source=("https://sourceforge.net/projects/fetchmail/files/branch_${pkgver%.*}/${pkgname}-${pkgver}.tar.xz" 'fetchmail.tmpfiles' 'fetchmail.sysusers' 'fetchmail.service') sha512sums=('f82f5a9ba83c529c2e85cf36e714a1075cdb7dca2c888d9a2bee4f4a52acffda7efc71f23d04c4d3f83767e3aa4ccc50d8d981f8f3be51bca3fb40e5cb5e79cf' 'f6e3eb409a1d88bcfb02012491fdbbf859803dbee45998879525fd35a2377bae95504da8aafcb24bcc2e695e15c96f6ec6f7e6521d28012370a4ec5e2a25a351' 'c1169c54b70be53e3093d65a2d0f1e251fadf24a8008484583d79dd3cedea13782137c0db5f9052b2d02fdbd6bd0fdcb78c6403fe39926ac636b45a44d452b29' '49c2843ddb06f587611f838bc9dab3fe04af991d70c27f8ffdd6351d8d6401683a356a03401e232a53e44ee43f6d85aa520f233f256974d07972913145fdf0f5') build() { cd ${pkgname}-${pkgver} ./configure --prefix=/usr --with-ssl=/usr make } package() { install -D -m644 fetchmail.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/fetchmail.conf install -D -m644 fetchmail.sysusers "${pkgdir}"/usr/lib/sysusers.d/fetchmail.conf install -D -m644 fetchmail.service "${pkgdir}"/usr/lib/systemd/system/fetchmail.service cd ${pkgname}-${pkgver} make DESTDIR="${pkgdir}" install install -d -o 90 -g nobody "${pkgdir}/var/lib/fetchmail" }