Fix package

This commit is contained in:
Fijxu 2023-04-14 12:07:26 -04:00
parent 6fffe4d99e
commit 3185ad6800
2 changed files with 5 additions and 6 deletions

View file

@ -1,6 +1,6 @@
pkgbase = dnsproxy-git pkgbase = dnsproxy-git
pkgdesc = Simple DNS proxy with DoH, DoT, DoQ and DNSCrypt support (git version) pkgdesc = Simple DNS proxy with DoH, DoT, DoQ and DNSCrypt support (git version)
pkgver = 0.48.3.r751.f8f22ab pkgver = 0.48.3.r753.5864a87
pkgrel = 1 pkgrel = 1
url = https://github.com/AdguardTeam/dnsproxy url = https://github.com/AdguardTeam/dnsproxy
arch = any arch = any

View file

@ -1,7 +1,6 @@
# Maintainer: Fijxu <fijxu <at> zzls <dot> xyz> # Maintainer: Fijxu <fijxu <at> zzls <dot> xyz>
pkgname=dnsproxy-git pkgname=dnsproxy-git
_pkgname=dnsproxy pkgver=0.48.3.r753.5864a87
pkgver=0.48.3.r751.f8f22ab
pkgrel=1 pkgrel=1
pkgdesc="Simple DNS proxy with DoH, DoT, DoQ and DNSCrypt support (git version)" pkgdesc="Simple DNS proxy with DoH, DoT, DoQ and DNSCrypt support (git version)"
arch=('any') arch=('any')
@ -19,18 +18,18 @@ sha256sums=("SKIP"
_conf=etc/dnsproxy/dnsproxy.yaml _conf=etc/dnsproxy/dnsproxy.yaml
pkgver() { pkgver() {
cd "$srcdir/$_pkgname" cd "$srcdir/$pkgname"
printf "0.48.3.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" printf "0.48.3.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
} }
build() { build() {
cd "$_pkgname" cd "$pkgname"
go build -mod=vendor -v go build -mod=vendor -v
} }
# Thanks "5long" for the package(), configuration files and systemd service # Thanks "5long" for the package(), configuration files and systemd service
package() { package() {
cd "$srcdir/$_pkgname" cd "$srcdir/$pkgname"
install -Dm755 dnsproxy "$pkgdir"/usr/bin/dnsproxy install -Dm755 dnsproxy "$pkgdir"/usr/bin/dnsproxy
install -Dm644 LICENSE "$pkgdir"/usr/share/license/dnsproxy/LICENSE install -Dm644 LICENSE "$pkgdir"/usr/share/license/dnsproxy/LICENSE
install -Dm644 README.md "$pkgdir"/usr/share/doc/dnsproxy/README.md install -Dm644 README.md "$pkgdir"/usr/share/doc/dnsproxy/README.md