summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 95c7b80414d15dda5eb2da8607b3865774b93f03 (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
# Maintainer: Frederik Lauber <acc-arch-pkgbuild-icecube-pal-git@flambda.de>
pkgname=icecube-pal-git
pkgrel=1
pkgdesc="Positional Astronomy Library"
url="https://github.com/IceCube-SPNO/pal"
arch=('x86_64' 'i686')
license=('gpl3+')
options=('!libtool')
source=('pal::git+https://github.com/IceCube-SPNO/pal')
depends=('erfa')
pkgver=v0.9.1.r17.gd452780
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/pal"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}


build() {
  cd "${srcdir}/pal"
  ./bootstrap
  ./configure --prefix=/usr
  make
}

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