summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c079f8880911977c746d5a67952a8eeef80062e0 (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
34
35
36
37
38
39
40
41
42
# Maintainer: Kevin MacMartin <prurigro at gmail dot com>

_pkgname=hellcat
pkgname=${_pkgname}-git
pkgver=r45.8873f05
pkgrel=1
pkgdesc="netcat that takes unfair advantage of traffic shaping systems that don't initially ratelimit"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
url="https://github.com/matildah/hellcat"
license=('MIT')
depends=('glibc')
makedepends=('clang' 'git')
provides=("$_pkgname")
conflicts=("$_pkgname")
replaces=("$_pkgname")

source=("git://github.com/matildah/${_pkgname}.git#branch=master"
        "${_pkgname}-build.patch")
sha512sums=('SKIP'
            'e5f697b5ffba48dbc7d88caa286e02dc59f1fdea0a889b32df64cf6dfd2bae62dcc4b7223fb7fab7d7f6c89832f2fb7e8d87255944cfe1ff2cbd1c69a863397c')

pkgver() {
    cd $_pkgname
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd $_pkgname
    patch -p1 < ../${_pkgname}-build.patch
}

build() {
    cd $_pkgname
    make
}

package() {
    cd $_pkgname
    install -Dm755 hellrecv "${pkgdir}/usr/bin/hellrecv"
    install -Dm755 hellsend "${pkgdir}/usr/bin/hellsend"
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}