summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6b4c0615528aab29367ea032c1e4d723ae7e1627 (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
# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
# Contributor: blackleg <blackleg@openmailbox.org>

pkgname=kalibrate-rtl-git
pkgver=r69.340003e
pkgrel=1
pkgdesc='Fork of http://thre.at/kalibrate/ for use with rtl-sdr devices'
arch=(i686 x86_64)
license=(BSD)
url="https://github.com/steve-m/kalibrate-rtl"
provides=(kalibrate-rtl)
depends=(rtl-sdr fftw)
makedepends=(git)
source=("${pkgname}::git+https://github.com/steve-m/kalibrate-rtl")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${pkgname}"

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

build() {
  cd "${srcdir}/${pkgname}"

  ./bootstrap
  ./configure --prefix=/usr

  make
}

package() {
  cd "${srcdir}/${pkgname}"

  install -Dm755 "${srcdir}/${pkgname}/src/kal" "${pkgdir}/usr/bin/kalibrate-rtlsdr"
}