diff options
author | sl1pkn07 | 2015-06-08 18:33:33 +0200 |
---|---|---|
committer | sl1pkn07 | 2015-06-08 18:33:33 +0200 |
commit | cdd42b209dc6bbe8488e38226c2b2140d6998578 (patch) | |
tree | 22f864e4f6523abc03c745d91a1ee674e7534e0c | |
download | aur-cdd42b209dc6bbe8488e38226c2b2140d6998578.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 39 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 66 | ||||
-rw-r--r-- | marble-git.install | 12 |
4 files changed, 122 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..de1bc7a905c2 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,39 @@ +pkgbase = marble-git + pkgdesc = Desktop Globe. (GIT version) + pkgver = v15.03.97.136.ge640a4b + pkgrel = 1 + url = https://www.kde.org/applications/system/marble + install = marble-git.install + arch = i686 + arch = x86_64 + license = GPL + makedepends = cmake + makedepends = git + makedepends = extra-cmake-modules + makedepends = gpsd + makedepends = quazip-qt5-svn + makedepends = shapelib + makedepends = qextserialport + makedepends = libwlocate + makedepends = phonon-qt5 + depends = qt5-webkit + depends = kparts + depends = krunner + depends = knewstuff + depends = opencv + depends = hicolor-icon-theme + optdepends = gpsd: position information via gpsd + optdepends = quazip-qt5-svn: reading and displaying .kmz files + optdepends = shapelib: reading and displaying .shp files + optdepends = qextserialport: eading from serial port in APRS plugin + optdepends = libwlocate: Position information based on neighboring WLAN networks + optdepends = phonon-qt5: That enables the use of audio and video content + provides = marble + conflicts = marble + conflicts = marble-qt + conflicts = kdeedu-marble + source = git://anongit.kde.org/marble.git + sha1sums = SKIP + +pkgname = marble-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..1862ba4e21f7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +* +!.gitignore +!.SRCINFO +!PKGBUILD +!marble-git.install diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..acb690cd2fbe --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,66 @@ +# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com> + +pkgname=marble-git +pkgver=v15.03.97.136.ge640a4b +pkgrel=1 +pkgdesc="Desktop Globe. (GIT version)" +arch=('i686' 'x86_64') +url="https://www.kde.org/applications/system/marble" +license=('GPL') +provides=('marble') +conflicts=('marble' 'marble-qt' 'kdeedu-marble' ) +depends=('qt5-webkit' 'kparts' 'krunner' 'knewstuff' 'opencv' 'hicolor-icon-theme') +makedepends=('cmake' 'git' 'extra-cmake-modules' 'gpsd' 'quazip-qt5-svn' 'shapelib' 'qextserialport' 'libwlocate' 'phonon-qt5') +optdepends=('gpsd: position information via gpsd' + 'quazip-qt5-svn: reading and displaying .kmz files' + 'shapelib: reading and displaying .shp files' + 'qextserialport: eading from serial port in APRS plugin' + 'libwlocate: Position information based on neighboring WLAN networks' + 'phonon-qt5: That enables the use of audio and video content') +source=('git://anongit.kde.org/marble.git') +sha1sums=('SKIP') +install=marble-git.install + +pkgver() { + cd marble + echo "$(git describe --long --tags | tr - .)" +} + +prepare() { + mkdir -p build + + # fix installation designer plugins path + sed 's|LIB_SUFFIX}/plugins|LIB_SUFFIX}/qt/plugins|g' -i marble/CMakeLists.txt + + # only build the KDE app + sed -e '/mobile/d' \ + -e '/qt/d' \ + -e '/Quick/d' \ + -e '/touch/d' \ + -i marble/src/apps/CMakeLists.txt +} + +build() { + cd build + cmake ../marble \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_INSTALL_DIR=lib \ + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ + -DBUILD_TESTING=OFF \ + -DQT5BUILD=ON \ + -DWITH_KF5=ON \ + -DBUILD_MARBLE_EXAMPLES=ON \ + -DBUILD_MARBLE_TOOLS=ON \ + -DBUILD_MARBLE_TESTS=OFF \ + -DMOBILE=OFF \ + -DQEXTSERIALPORT_INCLUDE_DIR=/usr/include/qt/QtExtSerialPort \ + -DQEXTSERIALPORT_LIBRARIES=/usr/lib/libQt5ExtSerialPort.so \ + -DPHONON_INCLUDE_DIR=/usr/include/phonon4qt5 \ + -DPHONON_LIBRARY=/usr/lib/libphonon4qt5.so + make +} + +package() { + make -C build DESTDIR="${pkgdir}" install +} diff --git a/marble-git.install b/marble-git.install new file mode 100644 index 000000000000..987eb70a1093 --- /dev/null +++ b/marble-git.install @@ -0,0 +1,12 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +}
\ No newline at end of file |