[arch-commits] Commit in libmarble4/repos (4 files)
Antonio Rojas
arojas at archlinux.org
Mon Sep 14 20:54:31 UTC 2015
Date: Monday, September 14, 2015 @ 22:54:30
Author: arojas
Revision: 246057
archrelease: copy trunk to testing-i686, testing-x86_64
Added:
libmarble4/repos/testing-i686/
libmarble4/repos/testing-i686/PKGBUILD
(from rev 246056, libmarble4/trunk/PKGBUILD)
libmarble4/repos/testing-x86_64/
libmarble4/repos/testing-x86_64/PKGBUILD
(from rev 246056, libmarble4/trunk/PKGBUILD)
-------------------------+
testing-i686/PKGBUILD | 53 ++++++++++++++++++++++++++++++++++++++++++++++
testing-x86_64/PKGBUILD | 53 ++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 106 insertions(+)
Copied: libmarble4/repos/testing-i686/PKGBUILD (from rev 246056, libmarble4/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD (rev 0)
+++ testing-i686/PKGBUILD 2015-09-14 20:54:30 UTC (rev 246057)
@@ -0,0 +1,53 @@
+# $Id: PKGBUILD 241398 2015-06-29 17:50:28Z arojas $
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=libmarble4
+pkgver=15.08.1
+pkgrel=1
+pkgdesc="KDE4 Marble libraries"
+url="http://kde.org/applications/education/marble/"
+arch=(i686 x86_64)
+license=(GPL LGPL FDL)
+depends=(qtwebkit libastro marble-data)
+makedepends=(cmake automoc4 gpsd libwlocate)
+optdepends=('gpsd: GPS support' 'libwlocate: WLAN based geolocation')
+conflicts=(kdeedu-marble)
+provides=(kdeedu-marble)
+source=("http://download.kde.org/stable/applications/$pkgver/src/marble-$pkgver.tar.xz")
+sha1sums=('1df82609a31b3fd678b2dd2f43d04588702e4ff0')
+
+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 \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DQT5BUILD=OFF \
+ -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}
+}
Copied: libmarble4/repos/testing-x86_64/PKGBUILD (from rev 246056, libmarble4/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2015-09-14 20:54:30 UTC (rev 246057)
@@ -0,0 +1,53 @@
+# $Id: PKGBUILD 241398 2015-06-29 17:50:28Z arojas $
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=libmarble4
+pkgver=15.08.1
+pkgrel=1
+pkgdesc="KDE4 Marble libraries"
+url="http://kde.org/applications/education/marble/"
+arch=(i686 x86_64)
+license=(GPL LGPL FDL)
+depends=(qtwebkit libastro marble-data)
+makedepends=(cmake automoc4 gpsd libwlocate)
+optdepends=('gpsd: GPS support' 'libwlocate: WLAN based geolocation')
+conflicts=(kdeedu-marble)
+provides=(kdeedu-marble)
+source=("http://download.kde.org/stable/applications/$pkgver/src/marble-$pkgver.tar.xz")
+sha1sums=('1df82609a31b3fd678b2dd2f43d04588702e4ff0')
+
+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 \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DQT5BUILD=OFF \
+ -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}
+}
More information about the arch-commits
mailing list