25 lines
842 B
Bash
25 lines
842 B
Bash
# Maintainer: Dct Mei <dctxmei@yandex.com>
|
|
# Contributor: Felix Yan <felixonmars@archlinux.org>
|
|
|
|
pkgname=xray-domain-list-community
|
|
pkgver=20220813112132
|
|
pkgrel=1
|
|
pkgdesc="A list of domains to be used as geosites for routing purpose in Project V"
|
|
arch=('any')
|
|
url="https://github.com/v2fly/domain-list-community"
|
|
license=('MIT')
|
|
makedepends=('go')
|
|
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
|
|
sha256sums=('ed7bf62ac074a8c993c08e06f3158b699af2ea39cf39c0e75391bffe2b2e7179')
|
|
|
|
build() {
|
|
cd "${srcdir}"/"domain-list-community-${pkgver}"/
|
|
go run main.go
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}"/"domain-list-community-${pkgver}"/
|
|
install -Dm 644 dlc.dat "${pkgdir}"/usr/share/xray/geosite.dat
|
|
install -Dm 644 "${srcdir}"/"domain-list-community-${pkgver}"/LICENSE -t "${pkgdir}"/usr/share/licenses/"$pkgname"/
|
|
}
|