summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c0d3926451ba68d044a463b3d8eaedcc89133f91 (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: Tobias Markus < tobias AT miglix DOT eu >

pkgname=libacars
pkgver=2.1.3
pkgrel=1
pkgdesc="A library for decoding various ACARS message payloads"
arch=('x86_64')
url="https://github.com/szpajder/libacars"
license=('MIT')
depends=('zlib' 'libxml2')
makedepends=('cmake' 'git')
optdepends=()
source=("$pkgname-$pkgver.tar.gz::https://github.com/szpajder/libacars/archive/v$pkgver.tar.gz")
sha256sums=('d221629dd750d203e62813dcd55d58c46dce6b9b5e31ff438c661a99ba659ee4')

build() {
  cd "$srcdir"

  export CFLAGS+=" ${CPPFLAGS}"
  export CXXFLAGS+=" ${CPPFLAGS}"
  cmake -B build \
      -S "$pkgname-$pkgver" \
      -Wno-dev \
      -DCMAKE_INSTALL_PREFIX=/usr \
      -DCMAKE_BUILD_TYPE=None
  make -C build
}

package() {
  cd "$srcdir"

  make -C build install DESTDIR="$pkgdir"

  install -Dm644 "$pkgname-$pkgver/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim: ts=2:sw=2:expandtab