From 3bb876025702f66fe420909fb26073e470890c86 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mat=C3=ADas=20Fonzo?= Date: Fri, 17 Jan 2020 09:43:05 -0300 Subject: [PATCH] recipes: tde/dbus_tqt: added version 14.0.7 --- recipes/09-tde.order | 1 + recipes/tde/dbus_tqt/recipe | 89 +++++++++++++++++++++++++++ sources/dbus-tqt-trinity-14.0.7.tar.xz.sha256 | 1 + 3 files changed, 91 insertions(+) create mode 100644 recipes/tde/dbus_tqt/recipe create mode 100644 sources/dbus-tqt-trinity-14.0.7.tar.xz.sha256 diff --git a/recipes/09-tde.order b/recipes/09-tde.order index b2053975..7e506280 100644 --- a/recipes/09-tde.order +++ b/recipes/09-tde.order @@ -26,3 +26,4 @@ tde/tqt3: tde/tqtinterface: tde/arts: +tde/dbus_tqt: diff --git a/recipes/tde/dbus_tqt/recipe b/recipes/tde/dbus_tqt/recipe new file mode 100644 index 00000000..6c323a3d --- /dev/null +++ b/recipes/tde/dbus_tqt/recipe @@ -0,0 +1,89 @@ +# Build recipe for dbus-tqt. +# +# Copyright (c) 2020 Matias Fonzo, . +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +program=dbus-tqt-trinity +pkgname=dbus_tqt +version=14.0.7 +release=1 + +# Set 'outdir' for a nice and well-organized output directory +outdir="${outdir}/${arch}/tde" + +tarname=${program}-${version}.tar.xz + +# Remote source(s) +fetch=http://mirror.ppa.trinitydesktop.org/trinity/releases/R${version}/main/dependencies/$tarname + +description=" +DBUS bindings for TQt. + +DBUS is a simple IPC library based on messages. +" + +homepage=http://www.trinitydesktop.org/ +license="Academic Free License version 2.1 | GPLv2+" + +# Source documentation +docs="AUTHORS COPYING ChangeLog HACKING NEWS README" +docsdir="${docdir}/${pkgname}-${version}" + +build() +{ + set -e + + unpack "${tardir}/$tarname" + + cd "$srcdir" + + # Set sane permissions + chmod -R u+w,go-w,a+rX-s . + + mkdir BUILD + cd BUILD + + cmake \ + -DCMAKE_CXX_FLAGS:STRING="$QICXXFLAGS" \ + -DCMAKE_SHARED_LINKER_FLAGS:STRING="$QILDFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/opt/trinity \ + -DLIB_SUFFIX=${libSuffix} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SKIP_INSTALL_RPATH=YES \ + .. + + make -j${jobs} + make -j${jobs} DESTDIR="$destdir" install + + # Compress and link man pages (if needed) + if test -d "${destdir}/$mandir" + then + ( + cd "${destdir}/$mandir" + find . -type f -exec lzip -9 '{}' + + find . -type l | while read -r file + do + ln -sf "$(readlink -- "$file").lz" "${file}.lz" + rm -- "$file" + done + ) + fi + + cd .. + + # Copy documentation + mkdir -p "${destdir}${docsdir}" + cp -p $docs "${destdir}${docsdir}" +} + diff --git a/sources/dbus-tqt-trinity-14.0.7.tar.xz.sha256 b/sources/dbus-tqt-trinity-14.0.7.tar.xz.sha256 new file mode 100644 index 00000000..4f2f6a9c --- /dev/null +++ b/sources/dbus-tqt-trinity-14.0.7.tar.xz.sha256 @@ -0,0 +1 @@ +3a4f51b1781155ec5ae8852a94411651bc61bdd4d29ca15286cddcae56607e44 dbus-tqt-trinity-14.0.7.tar.xz -- 2.11.4.GIT