[arch-commits] Commit in (4 files)

Levente Polyak anthraxx at archlinux.org
Mon Feb 15 17:47:55 UTC 2021


    Date: Monday, February 15, 2021 @ 17:47:54
  Author: anthraxx
Revision: 861382

addpkg: websocat 1.6.0-2

Added:
  websocat/
  websocat/repos/
  websocat/trunk/
  websocat/trunk/PKGBUILD

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Added: websocat/trunk/PKGBUILD
===================================================================
--- websocat/trunk/PKGBUILD	                        (rev 0)
+++ websocat/trunk/PKGBUILD	2021-02-15 17:47:54 UTC (rev 861382)
@@ -0,0 +1,35 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Stefan Tatschner <stefan at rumpelsepp.org>
+# Contributor: kpcyrd <git at rxv.cc>
+
+pkgname=websocat
+pkgver=1.6.0
+pkgrel=2
+pkgdesc='Command-line client for web sockets, like netcat/curl/socat for ws://'
+url='https://github.com/vi/websocat/'
+arch=('x86_64')
+license=('MIT')
+depends=('glibc' 'openssl' 'gcc-libs')
+makedepends=('cargo')
+source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('e41d69541d9322f43f0296fe853777372b7f1d011839a0f860e8cbbe37bdac61267d1f33e198a650bf830626fc621745e204bb5a0ba5c7317afa972ff22ada9c')
+b2sums=('ea859753e53876cd3fb75b2c924b7a8452135795d1fa6f3c66b6b7d253851f35a4d3a56cc668e0ef46be64c0dea75a1fd24c25024015df3597512c43c5000db5')
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  cargo build --release --locked --features=ssl
+}
+
+check() {
+  cd "${pkgname}-${pkgver}"
+  cargo test --release --locked
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  install -Dm 755 target/release/websocat -t "${pkgdir}/usr/bin"
+  install -Dm 644 README.md doc.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list