Guest User

gpstk17-bin PKGBUILD

a guest
Nov 23rd, 2013
49
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # ^ above shabeng-line is there to switch on automatic syntax highlighting in some editors.
  3.  
  4. # Maintainer:  dreieck
  5. # Contributor: oldbay
  6.  
  7. pkgname=gpstk17-bin
  8. pkgver=1.7
  9. pkgrel=1
  10.  
  11. pkgdesc="Algorithms and frameworks supporting the development of processing and analysis applications in navigation and global positioning."
  12. url="http://sourceforge.net/projects/gpstk"
  13. license=('LGPL')
  14.  
  15. depends=()
  16. makedepends=()
  17. optdepends=()
  18. provides=("gpstk=${pkgver}" "gpstk-bin=${pkgver}")
  19. replaces=("gpstk<=${pkgver}" "gpstk-bin<=${pkgver}")
  20. conflicts=('gpstk' "gpstk-bin")
  21.  
  22. arch=('i686' 'x86_64')
  23.  
  24. if   [[ "$CARCH" == 'i686' ]]; then
  25.   source=("http://sourceforge.net/projects/gpstk/files/gpstk/$pkgver/gpstk-$pkgver.linux.x386.tar.gz")
  26.   md5sums=('8eb58bb24f7309adf2204fe16449e865')
  27. elif [[ "$CARCH" == 'x86_64' ]]; then
  28.   source=("http://sourceforge.net/projects/gpstk/files/gpstk/$pkgver/gpstk-$pkgver.linux.amd64.tar.gz")
  29.   md5sums=('23cc7cf61844cf67ed91107dde749578')
  30. else
  31.   source=("http://www.example.com/invalid")
  32.   md5sums=('00000000000000000000000000000000')
  33.   echo "Not-supported architecture. Aborting PKGBUILD." > /dev/stderr
  34.   exit 1
  35. fi
  36.  
  37. build() {
  38.   true
  39. }
  40.  
  41. package() {
  42.  
  43. if [[ "$CARCH" == 'x86_64' ]]; then
  44.   _extractdir="${srcdir}/l64INSTALL"
  45. else
  46.   _extractdir="${srcdir}/gpstk"
  47. fi
  48.  
  49. cd "${_extractdir}"
  50.  
  51.  
  52. mkdir "$pkgdir/usr"
  53.  
  54. cp -r "${_extractdir}/bin" "$pkgdir/usr/"
  55. cp -r "${_extractdir}/include" "$pkgdir/usr/"
  56. cp -r "${_extractdir}/lib" "$pkgdir/usr/"
  57.  
  58. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×