PKGBUILDs/community/libqtxdg/PKGBUILD
2020-11-09 14:53:22 +00:00

57 lines
1.7 KiB
Bash

# Maintainer: Jerome Leclanche <jerome@leclan.ch>
# Co-Maintainer: Chih-Hsuan Yen <yan12125@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to disable LTO
pkgname=libqtxdg
pkgver=3.6.0
pkgrel=1
pkgdesc="Library providing freedesktop.org XDG specs implementations for Qt"
arch=("x86_64")
url="https://github.com/lxqt/$pkgname"
license=("LGPL" "custom")
depends=("libsm" "libxkbcommon-x11" "qt5-base" "qt5-svg")
makedepends=("cmake" "lxqt-build-tools")
checkdepends=("xorg-server-xvfb")
provides=("libQt5Xdg.so" "libQt5XdgIconLoader.so")
source=(
"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"
'0001-disable-LTO.patch'
)
sha256sums=('0fefb362eac9120fccd401202f15d092a59fd1aaacfc4b885a33578cdd41cf42'
'SKIP'
'36061244c5f0822a9724f8d4a614673a52a6bd95979f7b0b746e206319ccef5f')
validpgpkeys=(
"169704C6FB490C6892C7F23C37E0AF1FDA48F373" # Jerome Leclanche <jerome@leclan.ch>
"7C733BA5F585AAD669E4D23A42C9C8D3AF5EA5E3" # Alf Gaida <agaida@siduction.org>
"19DFDF3A579BD509DBB572D8BE793007AD22DF7E" # Pedram Pourang <tsujan2000@gmail.com>
)
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 \
-DBUILD_TESTS=ON
make
}
check() {
cd build
xvfb-run --auto-display make test
}
package() {
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
}