[arch-commits] Commit in libmarble4/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Wed Jul 29 14:23:31 UTC 2015
Date: Wednesday, July 29, 2015 @ 16:23:30
Author: arojas
Revision: 242840
libastro 15.04 is not BC with 15.08 but they didn't change the soname
Modified:
libmarble4/trunk/PKGBUILD
----------+
PKGBUILD | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-07-29 14:06:45 UTC (rev 242839)
+++ PKGBUILD 2015-07-29 14:23:30 UTC (rev 242840)
@@ -3,7 +3,7 @@
pkgname=libmarble4
pkgver=15.04.3
-pkgrel=3
+pkgrel=4
pkgdesc="KDE4 Marble libraries"
url="http://kde.org/applications/education/marble/"
arch=(i686 x86_64)
@@ -14,7 +14,7 @@
conflicts=(kdeedu-marble)
provides=(kdeedu-marble)
source=("http://download.kde.org/stable/applications/$pkgver/src/marble-$pkgver.tar.xz")
-sha1sums=('9c8c4f307bb633cf7c21fdf5fad82995d2dfa50a')
+sha1sums=('34f6bdedb6ff37f49c1e0f1f3cca219a515accb4')
prepare() {
mkdir -p build
@@ -21,6 +21,9 @@
# rename include dir
sed -e 's|marble/MarbleModel.h|marble4/MarbleModel.h|' -i marble-$pkgver/FindMarble.cmake
+# hack: change soname to make it coinstallable with 15.08 version
+ sed -e 's|GENERIC_LIB_VERSION "0.17.20"|GENERIC_LIB_VERSION "0.17"|' -e 's|GENERIC_LIB_SOVERSION "1"|GENERIC_LIB_SOVERSION "0"|' \
+ -i marble-$pkgver/src/lib/astro/CMakeLists.txt
}
build() {
@@ -40,7 +43,7 @@
rm -r "$pkgdir"/usr/bin
rm -r "$pkgdir"/usr/share/applications/kde4/marble-*
rm -r "$pkgdir"/usr/include/astro
- rm -r "$pkgdir"/usr/lib/libastro.*
+ rm -r "$pkgdir"/usr/lib/libastro.so
rm -r "$pkgdir"/usr/share/{appdata,config.kcfg,doc,icons}
# rename include dir to avoid conflicts with marble
mv "$pkgdir"/usr/include/marble{,4}
More information about the arch-commits
mailing list