[arch-commits] Commit in subsurface/trunk (PKGBUILD install)
Gaetan Bisson
bisson at archlinux.org
Thu Feb 5 03:19:33 UTC 2015
Date: Thursday, February 5, 2015 @ 04:19:32
Author: bisson
Revision: 127139
upstream update, qt5 build, custom marble
Added:
subsurface/trunk/install
Modified:
subsurface/trunk/PKGBUILD
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++--------
install | 11 +++++++++++
2 files changed, 57 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-02-05 02:44:06 UTC (rev 127138)
+++ PKGBUILD 2015-02-05 03:19:32 UTC (rev 127139)
@@ -4,24 +4,62 @@
pkgname=subsurface
_pkgname=Subsurface
-pkgver=4.3
-pkgrel=2
+pkgver=4.4.0
+pkgrel=1
pkgdesc='Divelog program'
-url='http://subsurface.hohndel.org/'
+url='http://subsurface-divelog.org/'
license=('GPL2')
arch=('i686' 'x86_64')
-depends=('qt4' 'kdeedu-marble' 'libzip' 'libxml2' 'libxslt' 'sqlite' 'libusbx'
- 'libgit2' 'libdivecomputer')
-source=("http://subsurface.hohndel.org/downloads/${_pkgname}-${pkgver}.tgz")
-sha1sums=('29f27537ef2ee91234244b0d984ddb30253fc69a')
+makedepends=('git' 'cmake' 'asciidoc')
+depends=('libzip' 'libxml2' 'libxslt' 'sqlite' 'libusbx' 'libgit2'
+ 'libdivecomputer' 'qt5-'{script,svg,tools,webkit})
+source=("http://subsurface-divelog.org/downloads/${_pkgname}-${pkgver}.tgz"
+ 'git://git.subsurface-divelog.org/marble#commit=aa18d0af6951debf3a3a90916f3f772784dbf326')
+sha1sums=('6598c1f894bd0334d8fa3dfec13adfadc041d56c'
+ 'SKIP')
+install=install
+
build() {
+ # subsurface is Qt5-only so we need to build marble against it;
+ # while we're at it we use Subsurface's custom marble branch.
+
+ cd "${srcdir}/marble"
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DQT5BUILD=ON \
+ -DQTONLY=ON \
+ -DBUILD_MARBLE_APPS=OFF \
+ -DBUILD_MARBLE_EXAMPLES=OFF \
+ -DBUILD_MARBLE_TESTS=OFF \
+ -DBUILD_MARBLE_TOOLS=OFF \
+ -DBUILD_TESTING=OFF \
+ -DWITH_DESIGNER_PLUGIN=OFF \
+ -DBUILD_WITH_DBUS=OFF \
+ .
+ make
+ install -d pkg
+ make DESTDIR="`pwd`/pkg" install
+
cd "${srcdir}/${_pkgname}-${pkgver}"
- qmake-qt4 -config release
+ qmake-qt5 \
+ -config release \
+ SPECIAL_MARBLE_PREFIX=1 \
+ LIBMARBLEDEVEL=../marble/pkg \
+ LIBS+="-L`pwd`/../marble/pkg/usr/lib" \
+ INCLUDEPATH+="`pwd`/../marble/pkg/usr/include" \
+
make
}
package() {
+ cd "${srcdir}/marble"
+ make DESTDIR="${pkgdir}" install
+
+ # remove conflicts with kdeedu-marble
+ rm -fr "${pkgdir}"/usr/{include,share/{appdata,icons}}
+
cd "${srcdir}/${_pkgname}-${pkgver}"
make INSTALL_ROOT="${pkgdir}" install
}
Added: install
===================================================================
--- install (rev 0)
+++ install 2015-02-05 03:19:32 UTC (rev 127139)
@@ -0,0 +1,11 @@
+post_upgrade() {
+ type gtk-update-icon-cache &>/dev/null && gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_install() {
+ post_upgrade
+}
+
+post_remove() {
+ post_upgrade
+}
More information about the arch-commits
mailing list