summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0644e5d099ebbc5f4751d459a01960147b6318f1 (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
_gitname=virtualmoonatlas
pkgname=virtualmoonatlas-git
pkgver=v8.2.5.g9c3cf49b
pkgrel=1
pkgdesc="Software for Moon observation and survey. Git-version"
arch=('x86_64')
url="https://www.ap-i.net/avl/en/start"
license=('GPL2')
depends=('libpasastro')
makedepends=('lazarus' 'gtk2' 'cspice')
conflicts=('virtualmoonatlas')
provides=('virtualmoonatlas')
source=("virtualmoonatlas::git+https://github.com/pchev/virtualmoon.git")
md5sums=('SKIP')

pkgver() {
	cd ${_gitname}
	git describe --always | sed 's/-/./g'
}

build() {
	cd "$srcdir/${_gitname}"
	./configure fpc=/usr/lib/fpc/3.0.4/units/x86_64-linux/ lazarus=/usr/lib/lazarus prefix=$pkgdir/usr
	make -j1
}

package() {
	cd "$srcdir/${_gitname}"
	make install
	./install_data.sh $pkgdir/usr
	chmod 755 $pkgdir/usr/share
}