# Maintainer: Evgeniy pkgname=opensmtpd-filter-replace-from_reply pkgver=1.0.4 pkgrel=1 pkgdesc='This is a simple OpenSMTPD filter for overwriting the email address in the MAIL FROM command, in the header in all sent messages, as well as for substituting the original MAIL FROM address in the Reply-To field' license=("MIT") arch=(i686 x86_64) depends=(glibc) makedepends=(go) source=("https://github.com/Genues/opensmtpd-filter-replace-from_reply/archive/$pkgver.zip") md5sums=('27962828876b68fc67de9ffdd4a43bb9') build() { cd "$pkgname-$pkgver" go build -buildmode pie -ldflags "-extldflags $LDFLAGS" -trimpath "$pkgname.go" } package() { cd "$pkgname-$pkgver" install -D "$pkgname" -t "$pkgdir"/usr/lib/smtpd/opensmtpd install -Dm644 README.md -t "$pkgdir"/usr/share/doc/$pkgname install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname }