summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a86d60048a1839504c153b5a55c36d5b78799fff (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
_pkgname=jpl_eph
pkgname=pluto-jpl-eph-git
pkgver=r104.5fccf11
pkgrel=1
pkgdesc="Code to read, use, and manipulate JPL DE ephemeris data"
arch=(x86_64)
url="http://www.projectpluto.com/jpl_eph.htm"
license=(GPL3)
provides=(pluto-jpl-eph)
makedepends=('git' 'pluto-lunar')
source=("git+https://github.com/Bill-Gray/jpl_eph.git")
sha512sums=('SKIP')

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

build() {
  cd "$srcdir/${_pkgname}"
  make all
}

package() {
  # install headers
  install -m644 -D "${srcdir}/${_pkgname}/jpleph.h"	"${pkgdir}/usr/local/include/jpleph.h"

  # install lib
  install -m644 -D "${srcdir}/${_pkgname}/libjpl.a"	"$pkgdir/usr/lib/libjpl.a"
  
  # install binary
  for bin in "asc2eph" "dump_eph" "eph2" "eph2asc" "ftest" "masses" "merge_de" "testeph"	
  do
	install -m755 -D "${srcdir}/${_pkgname}/${bin}"	"$pkgdir/usr/bin/${bin}"
  done
}