summaryrefslogtreecommitdiff
path: root/extra/kdeedu-marble/PKGBUILD
blob: a093aa5a408a9dd1afdd3fb5ec9aeb833084ccf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $Id: PKGBUILD 137387 2011-09-07 17:20:56Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>

pkgname=kdeedu-marble
pkgver=4.7.1
pkgrel=1
pkgdesc="Desktop Globe"
url="http://kde.org/applications/education/marble/"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL' 'LGPL' 'FDL')
groups=('kde' 'kdeedu')
depends=('kdebase-runtime')
makedepends=('cmake' 'automoc4' 'gpsd')
optdepends=('gpsd: gps support')
install=${pkgname}.install
source=("http://download.kde.org/stable/${pkgver}/src/marble-${pkgver}.tar.bz2"
        'gpsd3.patch')
sha1sums=('71c9ccd884495b34c8af4f7c432ca8942dfaa9dd'
          '3916dd6307109d70d0dd538de913c91eede81d78')

build() {
  cd "${srcdir}"/marble-${pkgver}
  patch -p1 -i "${srcdir}"/gpsd3.patch

  cd "${srcdir}"
  mkdir build
  cd build
  cmake ../marble-${pkgver} \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd "${srcdir}"/build
  make DESTDIR="${pkgdir}" install
}