blob: 24165629ac0eb9d0b44b1fa26f3c1006d856b8e6 (
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
|
# Maintainer: Sam Guymer <sam at guymer dot me>
pkgname=wsta
pkgver=0.5.0
pkgrel=2
pkgdesc="A CLI development tool for WebSocket APIs"
arch=("i686" "x86_64")
url="https://github.com/esphen/wsta"
license=("GPL3")
depends=("openssl")
makedepends=("cargo")
source=("https://github.com/esphen/$pkgname/archive/$pkgver.tar.gz")
sha256sums=("97d277faf0a423910c74e1036df724f16362839196c56d0986de7db15d6ba629")
build() {
cd "$pkgname-$pkgver"
OPENSSL_INCLUDE_DIR=/usr/include/openssl-1.0 OPENSSL_LIB_DIR=/usr/lib/openssl-1.0 cargo build --release
}
package() {
cd "$pkgname-$pkgver"
install -D -m0755 target/release/wsta "$pkgdir/usr/bin/$pkgname"
install -D -m0644 wsta.1 "$pkgdir/usr/share/man/man1/$pkgname.1"
install -D -m0644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENCE"
}
# vim: ft=sh syn=sh
|