PKGBUILDs/extra/libqtxdg/PKGBUILD

61 lines
1.7 KiB
Bash
Raw Normal View History

2017-11-25 17:10:34 +00:00
# Maintainer: Jerome Leclanche <jerome@leclan.ch>
2021-05-01 18:52:37 +00:00
# Co-Maintainer: Chih-Hsuan Yen <yan12125@archlinux.org>
2017-11-25 17:10:34 +00:00
2019-03-16 18:23:10 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to disable LTO
2017-11-25 17:10:34 +00:00
pkgname=libqtxdg
2023-04-17 12:47:17 +00:00
pkgver=3.11.0
2023-06-15 12:35:15 +00:00
pkgrel=2
2020-11-09 14:53:22 +00:00
pkgdesc="Library providing freedesktop.org XDG specs implementations for Qt"
2017-11-25 17:10:34 +00:00
arch=("x86_64")
2020-11-09 14:53:22 +00:00
url="https://github.com/lxqt/$pkgname"
2019-03-06 19:30:29 +00:00
license=("LGPL" "custom")
2017-11-25 17:10:34 +00:00
depends=("libsm" "libxkbcommon-x11" "qt5-base" "qt5-svg")
2019-03-06 19:30:29 +00:00
makedepends=("cmake" "lxqt-build-tools")
checkdepends=("xorg-server-xvfb")
2021-05-01 18:52:37 +00:00
optdepends=(
'xterm: the default terminal for running .desktop files'
)
2020-04-26 13:09:06 +00:00
provides=("libQt5Xdg.so" "libQt5XdgIconLoader.so")
2017-11-25 17:10:34 +00:00
source=(
2020-11-09 14:53:22 +00:00
"https://github.com/lxqt/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.xz"
"https://github.com/lxqt/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.xz.asc"
2019-03-06 19:30:29 +00:00
'0001-disable-LTO.patch'
2017-11-25 17:10:34 +00:00
)
2023-04-17 12:47:17 +00:00
sha256sums=('deae4e9138881df3a5afbfe3e39c2754f223a7e4797539997558753eb783972a'
2019-02-04 13:45:16 +00:00
'SKIP'
2020-04-26 13:09:06 +00:00
'36061244c5f0822a9724f8d4a614673a52a6bd95979f7b0b746e206319ccef5f')
2017-11-25 17:10:34 +00:00
validpgpkeys=(
2019-03-06 19:30:29 +00:00
"169704C6FB490C6892C7F23C37E0AF1FDA48F373" # Jerome Leclanche <jerome@leclan.ch>
"7C733BA5F585AAD669E4D23A42C9C8D3AF5EA5E3" # Alf Gaida <agaida@siduction.org>
2020-04-26 13:09:06 +00:00
"19DFDF3A579BD509DBB572D8BE793007AD22DF7E" # Pedram Pourang <tsujan2000@gmail.com>
2017-11-25 17:10:34 +00:00
)
prepare() {
2019-03-06 19:30:29 +00:00
cd $pkgname-$pkgver
patch -p1 -i ../0001-disable-LTO.patch
2017-11-25 17:10:34 +00:00
}
build() {
2019-03-06 19:30:29 +00:00
mkdir -p build
cd build
cmake "$srcdir/$pkgname-$pkgver" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_TESTS=ON
make
}
check() {
cd build
2020-04-26 13:09:06 +00:00
xvfb-run --auto-display make test
2017-11-25 17:10:34 +00:00
}
package() {
2019-03-06 19:30:29 +00:00
cd build
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir/$pkgname-$pkgver"/{AUTHORS,COPYING,Digia-Qt-LGPL-Exception-1.1} \
-t "$pkgdir"/usr/share/licenses/$pkgname
2017-11-25 17:10:34 +00:00
}