Date: Tuesday, December 8, 2015 @ 15:59:32 Author: arojas Revision: 253934
archrelease: copy trunk to staging-i686, staging-x86_64 Added: libmarble4/repos/staging-i686/ libmarble4/repos/staging-i686/PKGBUILD (from rev 253933, libmarble4/trunk/PKGBUILD) libmarble4/repos/staging-x86_64/ libmarble4/repos/staging-x86_64/PKGBUILD (from rev 253933, libmarble4/trunk/PKGBUILD) -------------------------+ staging-i686/PKGBUILD | 53 ++++++++++++++++++++++++++++++++++++++++++++++ staging-x86_64/PKGBUILD | 53 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+) Copied: libmarble4/repos/staging-i686/PKGBUILD (from rev 253933, libmarble4/trunk/PKGBUILD) =================================================================== --- staging-i686/PKGBUILD (rev 0) +++ staging-i686/PKGBUILD 2015-12-08 14:59:32 UTC (rev 253934) @@ -0,0 +1,53 @@ +# $Id: PKGBUILD 241398 2015-06-29 17:50:28Z arojas $ +# Maintainer: Antonio Rojas <aro...@archlinux.org> + +pkgname=libmarble4 +pkgver=15.08.3 +pkgrel=2 +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=('203fa8418c5af94aa3b0f4f16991edc7fb3bbcd7') + +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/staging-x86_64/PKGBUILD (from rev 253933, libmarble4/trunk/PKGBUILD) =================================================================== --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2015-12-08 14:59:32 UTC (rev 253934) @@ -0,0 +1,53 @@ +# $Id: PKGBUILD 241398 2015-06-29 17:50:28Z arojas $ +# Maintainer: Antonio Rojas <aro...@archlinux.org> + +pkgname=libmarble4 +pkgver=15.08.3 +pkgrel=2 +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=('203fa8418c5af94aa3b0f4f16991edc7fb3bbcd7') + +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} +}