summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 41900bbcc32aaaced7cb5c2ec1befe2c04b17cb5 (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

pkgname=meteor-demod-git
pkgver=r75.bf8f6eb
pkgrel=1
pkgdesc="Meteor-M2 LRPT demodulator"
arch=(any)
license=('GPL')
url="https://github.com/dbdexter-dev/meteor_demod"
depends=(ncurses)
makedepends=(git cmake)
provides=(meteor-demod)
conflicts=(meteor-demod)
source=("${pkgname}::git+https://github.com/dbdexter-dev/meteor_demod.git")
sha256sums=('SKIP')

pkgver() {
  cd "${pkgname}"

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

build() {
  cd "${pkgname}"

  mkdir build
  cd build

  cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  make
}

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

  make DESTDIR="${pkgdir}" install
}