summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 38769453ab8d1889b9065b3aadd43e66335db494 (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
# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com

pkgname=medet-git
pkgver=r18.8021339
pkgrel=1
pkgdesc="A portable decoder for METEOR M weather satellite LRPT signal"
arch=(i686 x86_64)
license=(GPL3)
url="https://github.com/artlav/meteor_decoder"
makedepends=(git fpc)
provides=(medet)
conflicts=(medet)
source=("${pkgname}::git+https://github.com/artlav/meteor_decoder.git")
sha256sums=('SKIP')

pkgver() {
  cd "${pkgname}"

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

build() {
  cd "${pkgname}"

  mkdir units
  fpc -CX -XX -O3 -Mdelphi -FUunits -Fualib medet.dpr
}

package() {
  cd "${pkgname}"

  install -Dm755 medet "${pkgdir}/usr/bin/medet"
}