summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d2407561b8fa440dc5d50ea49c9a7a30e98d9e5d (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Maintainer: Mees Luten <mees [dot] luten [at] gmail [dot] com>
pkgname=l-band-decoders-git
pkgver=r133.949d29b
pkgrel=1
pkgdesc="Small experimental project aimed at decoding various (HRPT) satellites such as Metop and FengYun"
arch=('x86_64')
url="https://github.com/altillimity/L-Band-Decoders"
license=('GPLv3')
depends=()
makedepends=('libcorrect-git' 'libpng' 'zlib' 'tclap' 'libccsds-git>=r9.bfa393e' 'libfec-git' 'git')
provides=()
conflicts=(satellite-decoders)
replaces=()
source=("$pkgname"::'git+https://github.com/altillimity/L-Band-Decoders.git')
sha256sums=("SKIP")

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

prepare() {
	#rm -f -r $pkgname
	#mv $pkgname-master $pkgname
	mkdir -p "$pkgname"/build
	# echo 'add_subdirectory("MetOp IASI Decoder")' >> "$pkgname"/CMakeLists.txt
}

build() {
	cd "$pkgname"/build
	cmake ../
	make -i
}

package() {
	cd "$pkgname"/build
	install -Dm755 CADU\ RSynchroderand/CADU-RSynchroderand "${pkgdir}"/usr/bin/CADU-RSynchroderand
	install -Dm755 FengYun\ Decoder/FengYun-Decoder "${pkgdir}"/usr/bin/FengYun-Decoder
	install -Dm755 FengYun\ VIRR\ Decoder/FengYun-VIRR-Decoder "${pkgdir}"/usr/bin/FengYun-VIRR-Decoder
	install -Dm755 METEOR\ BIS-M\ Decoder/METEOR-BIS-M-Decoder "${pkgdir}"/usr/bin/METEOR-BIS-M-Decoder
	install -Dm755 METEOR\ Demuxer/METEOR-Demux "${pkgdir}"/usr/bin/METEOR-Demux
	install -Dm755 METEOR\ MSU-MR\ Decoder/METEOR-MSU-MR-Decoder "${pkgdir}"/usr/bin/METEOR-MSU-MR-Decoder
	install -Dm755 METEOR\ MTVZA\ Decoder/METEOR-MTVZA-Decoder "${pkgdir}"/usr/bin/METEOR-MTVZA-Decoder
	install -Dm755 MetOp\ AMSU\ Decoder/MetOp-AMSU-Decoder "${pkgdir}"/usr/bin/MetOp-AMSU-Decoder
	install -Dm755 MetOp\ AVHRR\ Decoder/MetOp-AVHRR-Decoder "${pkgdir}"/usr/bin/MetOp-AVHRR-Decoder
	install -Dm755 MetOp\ Decoder/MetOp-Decoder "${pkgdir}"/usr/bin/MetOp-Decoder
	install -Dm755 MetOp\ GOME-2\ Decoder/MetOp-GOME-2-Decoder "${pkgdir}"/usr/bin/MetOp-GOME-2-Decoder
	install -Dm755 MetOp\ HIRS\ Decoder/MetOp-HIRS-Decoder "${pkgdir}"/usr/bin/MetOp-HIRS-Decoder
	install -Dm755 MetOp\ IASI\ Decoder/MetOp-IASI-Decoder "${pkgdir}"/usr/bin/MetOp-IASI-Decoder
	install -Dm755 MetOp\ MHS\ Decoder/MetOp-MHS-Decoder "${pkgdir}"/usr/bin/MetOp-MHS-Decoder
	install -Dm755 NOAA\ AVHRR\ Decoder/NOAA-AVHRR-Decoder "${pkgdir}"/usr/bin/NOAA-AVHRR-Decoder
	install -Dm755 NOAA\ HIRS\ Decoder/NOAA-HIRS-Decoder "${pkgdir}"/usr/bin/NOAA-HIRS-Decoder
	install -Dm755 NOAA\ MHS\ Decoder/NOAA-MHS-Decoder "${pkgdir}"/usr/bin/NOAA-MHS-Decoder
}