# Maintainer: Hugo Osvaldo Barrera pkgname=xendmail pkgver=0.3.0 pkgrel=0 pkgdesc="Like sendmail, for users" url="https://git.sr.ht/~whynothugo/xendmail" # rust-ring arch="all !s390x !ppc64le !riscv64" license="Apache-2.0" makedepends="cargo cargo-auditable" source="xendmail-$pkgver.tar.gz::https://git.sr.ht/~whynothugo/xendmail/archive/v$pkgver.tar.gz" builddir="$srcdir/$pkgname-v$pkgver" options="net" # fetch dependencies prepare() { default_prepare cargo fetch --locked } build() { cargo auditable build --release --frozen } check() { cargo test --frozen } package() { install -Dm 0755 target/release/$pkgname "$pkgdir/usr/bin/$pkgname" install -dm 0755 "$pkgdir/usr/sbin" ln -s /usr/bin/$pkgname "$pkgdir/usr/sbin/sendmail" } sha512sums=" 9cb4d3125c381c0cfeaf8ebc8886c005463b973f4b1b3082f750acca5e04eb7653804910da3048106f13677b4274264213665e66cf3180a4378a34349038e2b7 xendmail-0.3.0.tar.gz "