summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c56574089975b93e08a5d20763b215d98b308cac (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: Mathieu Deous <mat.deous+aur[at]gmail.com>

pkgname=kalibrate-hackrf-git
_pkgname=kalibrate-hackrf
pkgver=20220321
pkgrel=2
pkgdesc='GSM base stations scanner (for HackRF)'
arch=('i686' 'x86_64')
url='https://github.com/scateu/kalibrate-hackrf'
license=()
depends=('fftw>=3.0')
makedepends=(git gcc make hackrf)
source=("${pkgname}::git+https://github.com/scateu/${_pkgname}")
md5sums=(SKIP)

pkgver() {
    cd "${srcdir}/${pkgname}"
    git log -1 --pretty=format:%cd --date=short | sed 's/-//g'
}

build() {
    cd "${srcdir}/${pkgname}"
    ./bootstrap
    ./configure --prefix=/usr
    make ${MAKEFLAGS}
}

package() {
    cd "${srcdir}/${pkgname}"
    make DESTDIR="${pkgdir}/" install
    mv "${pkgdir}/usr/bin/kal" "${pkgdir}/usr/bin/kalibrate-hackrf"
}