1 # Based on: Bruno Tsubouchi Yporti <yportimd at gmail.com>
2 # Contributor: Bernhard Walle <bernhard.walle@gmx.de>
3 # Contributor: Thomas Dziedzic
5 pkgname=xephem-openmotif
9 pkgdesc='The Serious Interactive Astronomical Software Ephemeris.'
10 url='http://www.clearskyinstitute.com/xephem/xephem.html'
12 depends=('libxp' 'libxmu')
13 makedepends=('openmotif')
16 arch=('i686' 'x86_64')
17 source=("http://97.74.56.125/free/$_pkgname-$pkgver.tar.gz"
20 md5sums=('4e9290609f36df469a2ba5a1b4fffd46'
21 'b78b195f81e7d8010175a76f75f56928'
22 '31aeaa879db86feee457c3b6d4dc4a1f')
25 cd $_pkgname-$pkgver/GUI/$_pkgname
27 patch -p3 -i "$srcdir/xephem-ldflags.diff"
28 make -j1 MOTIF=/usr/lib/ || return 1
30 mkdir -p "$pkgdir/usr/share/$_pkgname"
31 for i in auxil catalogs fifos fits gallery help lo
33 cp -R $i "$pkgdir/usr/share/$_pkgname/"
36 mkdir -p "$pkgdir/usr/lib/X11/app-defaults"
37 echo "XEphem.ShareDir: /usr/share/xephem" > "$pkgdir/usr/lib/X11/app-defaults/XEphem"
39 install -D -m755 xephem "$pkgdir/usr/bin/xephem"
40 install -D -m644 xephem.1 "$pkgdir/usr/man/man1/xephem.1"
41 install -D -m644 "$srcdir/license.txt" "$pkgdir/usr/share/licenses/custom/$_pkgname/license.txt"