Various compilation scripts & patches for Linux programs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
2.0 KiB

  1. # Maintainer: Miguel de Val-Borro <miguel@archlinux.net>
  2. # Contributor: Matteo Paoluzzi <duwath [at] gmail [dot] com>
  3. # Contributor: jmf <jmf [at] mesecons [dot] net>
  4. pkgname=xephem
  5. pkgver=3.7.7
  6. pkgrel=4
  7. pkgdesc="The Serious Interactive Astronomical Software Ephemeris"
  8. arch=('i686' 'x86_64')
  9. url="http://www.clearskyinstitute.com/xephem/xephem.html"
  10. license=("custom")
  11. depends=(libxmu lesstif)
  12. makedepends=()
  13. optdepends=(perl)
  14. source=(http://www.clearskyinstitute.com/xephem/$pkgname-$pkgver.tgz "$pkgname.png" "$pkgname.desktop")
  15. md5sums=('27c67061a89085bf2b0d4e9deb758a79'
  16. 'a0debbe05d0831e4cbddc6d9d378b6d1'
  17. 'c8d6ab9e96d6bb2f634c9ac749e3383d')
  18. build() {
  19. #cd ${srcdir}/$pkgname-$pkgver/
  20. cd ${srcdir}/${pkgname}-${pkgver}/GUI/$pkgname
  21. export MAKEFLAGS="-j1"
  22. make MOTIF=/usr/lib/
  23. }
  24. package() {
  25. cd ${srcdir}/${pkgname}-${pkgver}/GUI/$pkgname
  26. mkdir -p ${pkgdir}/usr/bin
  27. cp ${srcdir}/${pkgname}-${pkgver}/GUI/$pkgname/xephem ${pkgdir}/usr/bin/
  28. mkdir -p ${pkgdir}/usr/share/$pkgname
  29. cp -R auxil ${pkgdir}/usr/share/$pkgname/
  30. cp -R catalogs ${pkgdir}/usr/share/$pkgname/
  31. cp -R fifos ${pkgdir}/usr/share/$pkgname/
  32. cp -R fits ${pkgdir}/usr/share/$pkgname/
  33. cp -R gallery ${pkgdir}/usr/share/$pkgname/
  34. cp -R help ${pkgdir}/usr/share/$pkgname/
  35. cp -R lo ${pkgdir}/usr/share/$pkgname/
  36. mkdir -p ${pkgdir}/usr/share/man/man1/
  37. cp xephem.1 ${pkgdir}/usr/share/man/man1/
  38. # mkdir -p ${pkgdir}/usr/lib/X11/app-defaults
  39. # echo "XEphem.ShareDir: /usr/share/xephem" > ${pkgdir}/usr/lib/X11/app-defaults/XEphem
  40. mkdir -p ${pkgdir}/usr/share/X11/app-defaults
  41. echo "XEphem.ShareDir: /usr/share/xephem" > ${pkgdir}/usr/share/X11/app-defaults/XEphem
  42. mkdir -p ${pkgdir}/usr/share/licenses/$pkgname/
  43. cp ${srcdir}/${pkgname}-${pkgver}/Copyright ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
  44. install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
  45. install -Dm644 "$srcdir/$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
  46. }