2015-08-11 05:26:57 +08:00
|
|
|
# Include global configuration
|
|
|
|
source ../kdeapps.conf
|
|
|
|
|
|
|
|
pkgname=libmarble4
|
2015-12-05 07:26:22 +08:00
|
|
|
pkgver=15.08.3
|
2016-05-22 23:56:29 +08:00
|
|
|
pkgrel=2
|
2015-08-11 05:26:57 +08:00
|
|
|
pkgdesc="KDE4 Marble libraries"
|
|
|
|
url="http://kde.org/applications/education/marble/"
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(GPL LGPL FDL)
|
|
|
|
depends=(qtwebkit libastro marble-data)
|
2015-10-19 00:19:36 +08:00
|
|
|
makedepends=(cmake automoc4 gpsd libwlocate)
|
|
|
|
optdepends=('gpsd: GPS support' 'libwlocate: WLAN based geolocation')
|
2015-08-15 16:32:44 +08:00
|
|
|
conflicts=('kdeedu-marble')
|
|
|
|
provides=('kdeedu-marble')
|
2015-12-05 07:26:22 +08:00
|
|
|
source=("http://download.kde.org/stable/applications/$pkgver/src/marble-$pkgver.tar.xz")
|
|
|
|
sha1sums=('203fa8418c5af94aa3b0f4f16991edc7fb3bbcd7')
|
2015-08-11 05:26:57 +08:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
mkdir -p build
|
|
|
|
|
|
|
|
# rename include dir
|
|
|
|
sed -e 's|marble/MarbleModel.h|marble4/MarbleModel.h|' -i marble-$pkgver/FindMarble.cmake.in
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd build
|
|
|
|
cmake ../marble-$pkgver \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DBUILD_MARBLE_TESTS=OFF \
|
|
|
|
-DBUILD_MARBLE_APPS=OFF \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2015-10-19 00:19:36 +08:00
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-DQT5BUILD=OFF \
|
2015-08-11 05:26:57 +08:00
|
|
|
-DMARBLE_PLUGIN_PATH=/usr/lib/marble4/plugins
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd build
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
|
|
|
|
# move cmake file
|
|
|
|
install -Dm644 "$pkgdir"/usr/share/marble/cmake/FindMarble.cmake "$pkgdir"/usr/share/apps/cmake/modules/FindMarble.cmake
|
|
|
|
|
|
|
|
# remove files provided by libastro and marble-data
|
|
|
|
rm -r "$pkgdir"/usr/include/astro
|
|
|
|
rm -r "$pkgdir"/usr/lib/libastro.*
|
|
|
|
rm -r "$pkgdir"/usr/share/{appdata,applications,icons,marble}
|
|
|
|
|
|
|
|
# rename include dir to avoid conflicts with marble
|
|
|
|
mv "$pkgdir"/usr/include/marble{,4}
|
|
|
|
}
|
|
|
|
|