blob: 4c40ba50d32b35fcc37169996aca7be3521e1b66 (
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
32
33
|
# Maintainer: kpcyrd <git@rxv.cc>
_gitname=rshijack
pkgname=rshijack-git
pkgver=0.3.0.r0.g602a08b
pkgrel=1
pkgdesc="TCP connection hijacker, rust rewrite of shijack"
url="https://github.com/kpcyrd/rshijack"
depends=('gcc-libs')
makedepends=('cargo' 'git')
provides=('rshijack')
conflicts=('rshijack')
arch=('i686' 'x86_64' 'armv6h')
license=('GPL3')
source=("git+https://github.com/kpcyrd/$_gitname.git")
sha512sums=('SKIP')
pkgver() {
cd "$_gitname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$_gitname"
cargo build --release --locked
}
package() {
cd "$_gitname"
install -Dm755 "target/release/${_gitname}" "$pkgdir/usr/bin/${_gitname}"
}
# vim:set ts=2 sw=2 et:
|