PKGBUILDs/community/libqtxdg/PKGBUILD

54 lines
1.5 KiB
Bash
Raw Normal View History

2017-11-25 17:10:34 +00:00
# Maintainer: Jerome Leclanche <jerome@leclan.ch>
2019-03-06 19:30:29 +00:00
# Co-Maintainer: Chih-Hsuan Yen <yan12125@gmail.com>
2017-11-25 17:10:34 +00:00
pkgname=libqtxdg
2019-03-06 19:30:29 +00:00
pkgver=3.3.1
pkgrel=1
2017-11-25 17:10:34 +00:00
pkgdesc="Library providing freedesktop.org XDG specs implementations for Qt."
arch=("x86_64")
2019-03-06 19:30:29 +00:00
url="https://lxqt.org"
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")
2017-11-25 17:10:34 +00:00
source=(
2019-03-06 19:30:29 +00:00
"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'
2017-11-25 17:10:34 +00:00
)
2019-03-06 19:30:29 +00:00
sha256sums=('1061fa6a4783df5e33ea2876f03f88b9ffef8157d37da97ea6b217b736c2d6d6'
2019-02-04 13:45:16 +00:00
'SKIP'
'8d6d7370b40bd54bd7582138926fc258a055e30afeb8de1c3385de333542b54a')
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>
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 \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_TESTS=ON
make
}
check() {
cd build
xvfb-run 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
}