#!/bin/sh # Maintainer: Zhuo FENG pkgname=mosdns-cn pkgver=1.1.2 pkgrel=1 pkgdesc="A DNS forwarder" license=("GPL3") arch=("any") url="https://github.com/IrineSistiana/mosdns-cn" makedepends=("go") optdepends=('v2ray-domain-list-community: geosite.dat' 'v2ray-geoip: geoip.dat' 'v2ray-rules-dat-git: geosite.dat & geoip.dat') provides=("mosdns-cn") conflicts=("mosdns-cn") source=("$pkgname-$pkgver.tar.gz::https://github.com/IrineSistiana/mosdns-cn/archive/refs/tags/v$pkgver.tar.gz") build() { export GOPATH="$srcdir/gopath" cd "$pkgname-$pkgver" go build . } package() { cd "$pkgname-$pkgver" install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname" } sha256sums=('2a6ae3607e01ad7a82e27f87fd359d1cbd59943999b09421620c14d01574f62f')