summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 085b68077650943ea60c0120853d885e2ff65ce3 (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
# Maintainer: Nick Ƙstergaard <oe.nick at gmail dot com>
pkgname=libpredict-git
pkgver=r254.716419e
pkgrel=1
pkgdesc="A satellite orbit prediction library"
arch=('i686' 'x86_64')
url="https://github.com/la1k/libpredict"
license=('GPL')
provides=('libpredict')
conflicts=('libpredict')
makedepends=('cmake')
optdepends=('flyby')
source=("$pkgname::git+https://github.com/la1k/libpredict")
md5sums=('SKIP')

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

build() {
  cd "$srcdir/$pkgname"

  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib .
  make
}

package() {
  cd "$srcdir/$pkgname"
  make DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et: