aboutsummaryrefslogblamecommitdiffstats
path: root/testing/termshark/APKBUILD
blob: 05c1203704a28efbd77fc44dd1d2ba529714f189 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                 

                 
        
                                                       

                          
                                      

                

                                                                                          




















                                                                            

                                                                                                                                                                    
# Contributor: omni <omni@gitlab.alpinelinux.org>
# Maintainer:
pkgname=termshark
pkgver=2.2.0
pkgrel=1
pkgdesc="terminal UI for tshark, inspired by Wireshark"
url="https://termshark.io"
license="MIT"
arch="all !armhf" # no tshark on armhf
depends="tshark"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/gcla/termshark/archive/v$pkgver.tar.gz
	use-github-org-unix-termios.patch"

export GOPATH="$srcdir"
export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw"

build() {
	go build -v ./cmd/...
}

check() {
	go test -v ./...
}

package() {
	install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
	install -Dm644 docs/UserGuide.md -t "$pkgdir"/usr/share/doc/$pkgname
	install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname

	# Help clean-up as some paths are readonly
	rm -rf "$GOPATH"/pkg/mod
}

sha512sums="5ab2e2ccb7d4ab71a5b364c9677a24725dc5702a1c574f93ec2f4f09aba2322c292728f9ea02eb1d7378e7ea32ee4952dc59fd7b699e70fcaa3007c1f28219db  termshark-2.2.0.tar.gz
a2007fe37003765b3cf844e67d7bc263ba49335705844d199d32f526d5dd6ea28a279779204e25962adf1ff94370c324384c258d5ce97e64bbfa0d20913b67b1  use-github-org-unix-termios.patch"