# Maintainer: suienzan _pkgname=mosdns pkgname=${_pkgname}-bin pkgver=3.4.0 pkgrel=1 pkgdesc="Plug-in configured DNS forwarder/server" arch=('x86_64') url="https://github.com/IrineSistiana/mosdns/" license=('GPL3') optdepends=('v2ray-domain-list-community: geosite.dat' 'v2ray-geoip: geoip.dat' 'v2ray-rules-dat-git: geosite.dat & geoip.dat') backup=('etc/mosdns/config.yaml') provides=('mosdns') conflicts=('mosdns' 'mosdns-git') source=("$pkgname-$pkgver.zip::https://github.com/IrineSistiana/mosdns/releases/download/v${pkgver}/mosdns-linux-amd64.zip") sha256sums=('a146ca91e7bbc6200c554df77c518fc06baac703f11b03c4e71268b77577e4fd') package() { install -Dm755 mosdns "$pkgdir"/usr/bin/mosdns install -Dm644 ../service "$pkgdir"/usr/lib/systemd/system/mosdns.service install -Dm644 ../config.yaml "$pkgdir"/etc/mosdns/config.yaml }