Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # ^ above shabeng-line is there to switch on automatic syntax highlighting in some editors.
- # Maintainer: dreieck
- # Contributor: oldbay
- pkgname=gpstk17-bin
- pkgver=1.7
- pkgrel=1
- pkgdesc="Algorithms and frameworks supporting the development of processing and analysis applications in navigation and global positioning."
- url="http://sourceforge.net/projects/gpstk"
- license=('LGPL')
- depends=()
- makedepends=()
- optdepends=()
- provides=("gpstk=${pkgver}" "gpstk-bin=${pkgver}")
- replaces=("gpstk<=${pkgver}" "gpstk-bin<=${pkgver}")
- conflicts=('gpstk' "gpstk-bin")
- arch=('i686' 'x86_64')
- if [[ "$CARCH" == 'i686' ]]; then
- source=("http://sourceforge.net/projects/gpstk/files/gpstk/$pkgver/gpstk-$pkgver.linux.x386.tar.gz")
- md5sums=('8eb58bb24f7309adf2204fe16449e865')
- elif [[ "$CARCH" == 'x86_64' ]]; then
- source=("http://sourceforge.net/projects/gpstk/files/gpstk/$pkgver/gpstk-$pkgver.linux.amd64.tar.gz")
- md5sums=('23cc7cf61844cf67ed91107dde749578')
- else
- source=("http://www.example.com/invalid")
- md5sums=('00000000000000000000000000000000')
- echo "Not-supported architecture. Aborting PKGBUILD." > /dev/stderr
- exit 1
- fi
- build() {
- true
- }
- package() {
- if [[ "$CARCH" == 'x86_64' ]]; then
- _extractdir="${srcdir}/l64INSTALL"
- else
- _extractdir="${srcdir}/gpstk"
- fi
- cd "${_extractdir}"
- mkdir "$pkgdir/usr"
- cp -r "${_extractdir}/bin" "$pkgdir/usr/"
- cp -r "${_extractdir}/include" "$pkgdir/usr/"
- cp -r "${_extractdir}/lib" "$pkgdir/usr/"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement