archrelease: copy trunk to community-any
[ArchLinux/community.git] / rshijack / trunk / PKGBUILD
blob5f9ac50c2a1ed19508e444552582e3e926b729d9
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: kpcyrd <git@rxv.cc>
4 pkgname=rshijack
5 pkgver=0.4.0
6 pkgrel=1
7 pkgdesc='TCP connection hijacker, rust rewrite of shijack'
8 url='https://github.com/kpcyrd/rshijack'
9 depends=('gcc-libs')
10 makedepends=('cargo')
11 arch=('x86_64')
12 license=('GPL3')
13 source=(https://github.com/kpcyrd/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz
14         https://github.com/kpcyrd/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz.asc)
15 sha512sums=('cde0c8505d826fbe86344650fdf724a87ca879530b27617a8e841e620886324abca38809624f5b15c4a29e4bb81a0bab60c3fccd3c18dfccee27a9132d7ed210'
16             'SKIP')
17 b2sums=('add1da1f86d3dd7bfb95b122ce4ad010c835e42fb5548633d95e9a7de9d296a27ee041ee246d4d205c0c1dd1233d48f787748a7cc7cd6f8fe059a45c3459a617'
18         'SKIP')
20 validpgpkeys=("64B13F7117D6E07D661BBCE0FE763A64F5E54FD6")
22 build() {
23   cd ${pkgname}-${pkgver}
24   cargo build --release --locked
27 package() {
28   cd ${pkgname}-${pkgver}
29   install -Dm 755 target/release/${pkgname} "${pkgdir}/usr/bin/${pkgname}"
30   install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
31   install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
34 # vim: ts=2 sw=2 et: