summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 81f11535ebdec7442d69b20522c2dc21a65dfecf (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
40
# Maintainer: Elliot Hatch <elliot.hatch@gmail.com>
pkgname=dug-git
pkgver=r284.55f6ecb
pkgrel=1
pkgdesc="A powerful global DNS progagation checker that can output in a variety of formats."
arch=(x86_64)
url="https://dug.unfrl.com/"
license=('custom:ANTI-CAPITALIST SOFTWARE LICENSE v1.4')
depends=()
makedepends=(git 'dotnet-runtime>=6.0.0' 'dotnet-sdk>=6.0.0', 'dotnet-host>=6.0.0')
provides=(dug)
options=(!strip)
source=($pkgname::git+https://github.com/unfrl/dug.git)
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:PublishTrimmed=true \
    -p:PublishReadyToRun=true \
    --self-contained true \
    ./cli
}

package() {
  cd "$srcdir/$pkgname"

  install -D -m644 "./cli/LICENSE" -t "$pkgdir/usr/share/licenses/dug"

  install -D -m755 "./cli/bin/Release/net6.0/linux-x64/publish/dug" -t "$pkgdir/usr/bin" 
}