Date: Thursday, February 25, 2021 @ 11:31:39 Author: felixonmars Revision: 873796
upgpkg: v2ray-domain-list-community 20210225063122-1 Modified: v2ray-domain-list-community/trunk/PKGBUILD ----------+ PKGBUILD | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-02-25 11:31:38 UTC (rev 873795) +++ PKGBUILD 2021-02-25 11:31:39 UTC (rev 873796) @@ -1,7 +1,7 @@ # Maintainer: Felix Yan <felixonm...@archlinux.org> pkgname=v2ray-domain-list-community -pkgver=20210223163424 +pkgver=20210225063122 pkgrel=1 pkgdesc="A list of domains to be used as geosites for routing purpose in Project V" arch=('any') @@ -9,28 +9,15 @@ license=('MIT') makedepends=('go' 'git') source=("https://github.com/v2fly/domain-list-community/archive/$pkgver/$pkgname-$pkgver.tar.gz") -sha512sums=('73ca445eb469a0e95b5c5088783a6f65a76f4068bda3d2125592643fa8b910d01fcf0533811c138fd40eecb1a82162622122bf03934f5873b4ad08df62f76fde') +sha512sums=('b2f88cf6e99c4ee114a5360999faa68931f2054b8f6f97a4f6675251859f252a591c4b59458a55a293309cd937cd01c3a4fd6c872ebfc8eb8ff04e24552f3dc9') -export GO111MODULE=auto - -prepare() { - mkdir .gopath - export GOPATH="$srcdir/.gopath" - - mkdir -p .gopath/src/github.com/v2fly - ln -s "$PWD/domain-list-community-$pkgver" .gopath/src/github.com/v2fly/domain-list-community - - go get github.com/golang/protobuf/proto - go get -insecure v2ray.com/core/app/router -} - build() { - cd .gopath - go run ./src/github.com/v2fly/domain-list-community/main.go + cd domain-list-community-$pkgver + go run main.go } package() { - cd .gopath + cd domain-list-community-$pkgver install -Dm644 dlc.dat "$pkgdir"/usr/share/v2ray/geosite.dat install -Dm644 "$srcdir"/domain-list-community-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE }