summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 52feca4d8961bddc92a4aef5818c748ee638641e (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
# Maintainer: Iyán Méndez Veiga <me (at) iyanmv (dot) com>
_name=hcxlabtool
pkgname=$_name-git
pkgver=r347.51ad69e
pkgrel=1
pkgdesc="NL80211 / RTNETLINK fork of hcxdumptool"
arch=(x86_64)
url="https://github.com/ZerBea/wifi_laboratory"
license=(MIT)
depends=('glibc')
makedepends=('git')
options=(!debug)
source=('hcxlabtool::git+https://github.com/ZerBea/wifi_laboratory')
b2sums=('SKIP')

pkgver() {
    cd "${srcdir}/${_name}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}


build() {
    cd "${srcdir}/${_name}"
    gcc $CFLAGS -o hcxlabtool hcxlabtool.c $LDFLAGS
}

package() {
    cd "${srcdir}/${_name}"
    install -Dm 755 ${_name} -t "${pkgdir}/usr/bin/"
    install -Dm 644 license.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
    install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
}