summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4d63c155e515490b628519383c5eee913eb5fba6 (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
# Maintainer: Jamison Lahman <jamison+aur@lahman.dev>
# Contributor:
pkgname=docker-debug
pkgver=0.7.11
pkgrel=3
pkgdesc="use new container attach on already container go on debug"
arch=('x86_64' 'aarch64')
url="https://github.com/zeromake/docker-debug"
license=('MIT')
depends=('glibc')
makedepends=('go' 'git')
source=("git+https://github.com/zeromake/docker-debug.git#tag=v$pkgver")
sha256sums=('SKIP')

build() {
  cd "$pkgname" || exit
  go build \
    -trimpath \
    -mod=readonly \
    -modcacherw \
    -ldflags='-s -w' \
    -o $pkgname \
    ./cmd/docker-debug
}

package() {
  cd "$pkgname" || exit
  install -Dm 755 $pkgname -t "$pkgdir/usr/bin"
  install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
  install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
}