summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d039293a21d6f2bb270b347c85d575707d2362bb (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
# Maintainer: AstroFloyd  < AstroFloyd [at] gmail [dt] com >
pkgname=libthesky
pkgver=0.3.3
pkgrel=3
pkgdesc="Fortran library to compute the positions of celestial bodies and events with great accuracy"
arch=('i686' 'x86_64')
url="http://libthesky.sourceforge.net/"
license=('GPL3')
depends=('gcc-libs' 'libsufr' 'libthesky-data')
makedepends=('cmake' 'gcc-fortran' 'libsufr')
changelog=ChangeLog
source=("http://sourceforge.net/projects/libthesky/files/$pkgname-$pkgver.tar.gz")
sha512sums=('f7180fdce4a28f6b09393c7b4676a293b145cea8f9993c309c4105dd2928c42fe842985cc905033c9f1b7626b50417005250bce11b1c60d3d6c91f03d7c79bcb')

build() {
    mkdir -p "$pkgname-$pkgver"/build
    cd "$pkgname-$pkgver"/build/
    cmake -DCMAKE_INSTALL_PREFIX:PATH="$pkgdir/usr/" ..
    make
}

package() {
    # Install library:
    cd "$pkgname-$pkgver"/build/
    make install
    
    # Remove unwanted man pages:
    cd ${pkgdir}/usr/share/man/man3f/
    rm -f maxlocs.3f.gz lat0.3f.gz lon0.3f.gz height.3f.gz deltat.3f.gz tz.3f.gz tz0.3f.gz second.3f.gz day.3f.gz year.3f.gz month.3f.gz hour.3f.gz minute.3f.gz dsttp.3f.gz
    rm -f c1.3f.gz c2.3f.gz ath.3f.gz a0.3f.gz p1.3f.gz p2.3f.gz p3.3f.gz p4.3f.gz p5.3f.gz q1.3f.gz q2.3f.gz q3.3f.gz q4.3f.gz q5.3f.gz w.3f.gz eart.3f.gz peri.3f.gz p.3f.gz del.3f.gz zeta.3f.gz t.3f.gz pre.3f.gz coef.3f.gz zone.3f.gz pc1.3f.gz pc2.3f.gz pc3.3f.gz per1.3f.gz per2.3f.gz per3.3f.gz ilu.3f.gz ipla.3f.gz nterm.3f.gz nrang.3f.gz prec0.3f.gz ideb.3f.gz
    cd -
}