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

pkgname=kalibrate-rtl-git
pkgver=r69.340003e
pkgrel=2
pkgdesc='Fork of http://thre.at/kalibrate/ for use with rtl-sdr devices'
arch=(i686 x86_64)
license=(BSD-2-Clause)
url="https://github.com/steve-m/kalibrate-rtl"
depends=(gcc-libs glibc fftw rtl-sdr)
makedepends=(git)
conflicts=(kalibrate-rtl)
provides=(kalibrate-rtl)
source=("${pkgname}::git+https://github.com/steve-m/kalibrate-rtl.git")
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"
}