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.

56 lines
1.9 KiB

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