From 4d1c81c8c40a1d8b62b2414eafa9fa71ddc7738e Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Sat, 25 Nov 2017 17:10:34 +0000 Subject: [PATCH] added community/libqtxdg --- community/libqtxdg/0001-disable-LTO.patch | 23 +++++++++++ community/libqtxdg/PKGBUILD | 48 +++++++++++++++++++++++ community/libqtxdg/rebuild.list | 1 + 3 files changed, 72 insertions(+) create mode 100644 community/libqtxdg/0001-disable-LTO.patch create mode 100644 community/libqtxdg/PKGBUILD create mode 100644 community/libqtxdg/rebuild.list diff --git a/community/libqtxdg/0001-disable-LTO.patch b/community/libqtxdg/0001-disable-LTO.patch new file mode 100644 index 000000000..ee5b1b44d --- /dev/null +++ b/community/libqtxdg/0001-disable-LTO.patch @@ -0,0 +1,23 @@ +From cacc184cb590591fffe5956294380c48f8390110 Mon Sep 17 00:00:00 2001 +From: Kevin Mihelich +Date: Sat, 25 Nov 2017 10:06:57 -0700 +Subject: [PATCH] disable LTO + +--- + cmake/compiler_settings.cmake | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/cmake/compiler_settings.cmake b/cmake/compiler_settings.cmake +index 6e318d9..87fe59a 100644 +--- a/cmake/compiler_settings.cmake ++++ b/cmake/compiler_settings.cmake +@@ -167,5 +167,5 @@ if (CMAKE_COMPILER_IS_GNUCXX OR QTXDG_COMPILER_IS_CLANGCXX) + # set(LTO_FLAGS "-flto") + endif() + # apply these options to "Release" build type only +- set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${LTO_FLAGS}") ++ #set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${LTO_FLAGS}") + endif() +-- +2.14.1 + diff --git a/community/libqtxdg/PKGBUILD b/community/libqtxdg/PKGBUILD new file mode 100644 index 000000000..65af733bf --- /dev/null +++ b/community/libqtxdg/PKGBUILD @@ -0,0 +1,48 @@ +# $Id$ +# Maintainer: Jerome Leclanche + +# ALARM: Kevin Mihelich +# - patch to disable LTO + +pkgname=libqtxdg +pkgver=3.1.0 +pkgrel=2 +pkgdesc="Library providing freedesktop.org XDG specs implementations for Qt." +arch=("x86_64") +url="http://lxqt.org" +license=("GPL2") +depends=("libsm" "libxkbcommon-x11" "qt5-base" "qt5-svg") +makedepends=("cmake") +source=( + "https://github.com/lxde/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.xz" + "https://github.com/lxde/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.xz.asc" + '0001-disable-LTO.patch' +) +sha256sums=( + "0ee1a4684b782e34950c55dc06df1b4ef2dc3d9b3562a512de004191c18a2e08" + "SKIP" + "8d6d7370b40bd54bd7582138926fc258a055e30afeb8de1c3385de333542b54a" +) +validpgpkeys=( + "169704C6FB490C6892C7F23C37E0AF1FDA48F373" # Jerome Leclanche + "7C733BA5F585AAD669E4D23A42C9C8D3AF5EA5E3" # Alf Gaida +) + +prepare() { + cd $pkgname-$pkgver + patch -p1 -i ../0001-disable-LTO.patch +} + +build() { + mkdir -p build + cd build + cmake "$srcdir/$pkgname-$pkgver" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + make +} + +package() { + cd build + make DESTDIR="$pkgdir" install +} diff --git a/community/libqtxdg/rebuild.list b/community/libqtxdg/rebuild.list new file mode 100644 index 000000000..dc86ac7f9 --- /dev/null +++ b/community/libqtxdg/rebuild.list @@ -0,0 +1 @@ +deepin-qt5integration