blob: 71ffb30164b962aea06d20351511f660a3a22bb4 (
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
|
_pkgname=lunar
pkgname=pluto-lunar-git
pkgver=r592.bb05de6
pkgrel=1
pkgdesc="Basic astronomical functions for solar system ephemerides, time systems, coordinate systems, etc"
arch=(x86_64)
url="https://www.projectpluto.com/source.htm"
license=(GPL2)
makedepends=('git')
provides=(pluto-lunar)
source=("git+https://github.com/Bill-Gray/lunar.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
for header in "afuncs.h" "brentmin.h" "cgi_func.h" "comets.h" "date.h" "get_bin.h" \
"lunar.h" "mpc_func.h" "showelem.h" "stringex.h" "vislimit.h" "watdefs.h"
do
install -m644 -D "${srcdir}/${_pkgname}/${header}" "${pkgdir}/usr/local/include/${header}"
done
# install lib
install -m644 -D "${srcdir}/${_pkgname}/liblunar.a" "$pkgdir/usr/local/lib/liblunar.a"
# install binary
for bin in "add_off" "adestest" "astcheck" "astephem" "calendar" "cgicheck" "chinese" "colors" \
"colors2" "cosptest" "csv2ades" "dist" "easter" "get_test" "gtest" "htc20b" "jd" \
"jevent" "jpl2b32" "jsattest" "lun_test" "marstime" "moidtest" "mpc2sof" "mpc_time" \
"oblitest" "persian" "parallax" "parallax.cgi" "phases" "prectest" \
"prectes2" "ps_1996" "ssattest" "tables" "test_des" "test_ref" "testprec" \
"themis" "them_cat" "uranus1" "utc_test"
do
install -m755 -D "${srcdir}/${_pkgname}/${bin}" "$pkgdir/usr/bin/${bin}"
done
}
|