blob: 76a0c7f5b5e55e873f60763e83a40d840244adce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Elliot Hatch <elliot.hatch@gmail.com>
pkgname=dug-git
pkgver=r296.bbdbe3f
pkgrel=1
pkgdesc="A global DNS propagation checker that gives pretty output."
arch=(x86_64)
url="https://dug.unfrl.com/"
license=('MIT')
depends=(zlib gcc-libs glibc)
makedepends=(git 'dotnet-runtime>=10' 'dotnet-sdk>=10', 'dotnet-host>=10')
provides=(dug)
options=(!strip)
source=($pkgname::git+https://git.unfrl.com/Unfrl/dug)
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$pkgname"
DOTNET_CLI_TELEMETRY_OPTOUT=1 dotnet publish \
--configuration Release \
--runtime linux-x64 \
-p:PublishSingleFile=true \
-p:PublishReadyToRun=true \
--self-contained true \
./cli
}
package() {
cd "$srcdir/$pkgname"
install -D -m644 "./LICENSE" -t "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
install -D -m755 "./cli/bin/Release/net10.0/linux-x64/publish/dug" -t "$pkgdir/usr/bin"
}
|