summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 174b9da9f3a946a9c4804f75c4b24aa41597f9c1 (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
# Maintainer: Tony Lambiris <tony@criticalstack.com>

pkgname=websocat-git
pkgver=v1.2.0.r5.gd328450
pkgrel=1
pkgdesc="Command-line client for WebSockets"
arch=(x86_64)
url='https://github.com/vi/websocat/'
license=(MIT)
makedepends=(git rustup)
source=("${pkgname}::git+https://github.com/vi/websocat.git")
sha256sums=('SKIP')

pkgver() {
	cd "${srcdir}/${pkgname}"

	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "${srcdir}/${pkgname}"

	cargo build --release --features=ssl
}

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

	install -Dm755 "target/release/websocat" "${pkgdir}/usr/bin/websocat"
}