Date: Monday, February 25, 2019 @ 07:21:56 Author: yan12125 Revision: 435641
upgpkg: libqtxdg 3.3.1-1 * Tabs -> spaces * Add myself as a co-maintainer * Fix `license`. See the commit message of [1] for details * Use HTTPS in `url` * Run tests [1] https://github.com/lxqt/libqtxdg/commit/9cc9b0e6f600e9d87484934bd394416b14ab7840#diff-3d350169560e75d0cf9fc8e3574a3639 Modified: libqtxdg/trunk/PKGBUILD ----------+ PKGBUILD | 47 +++++++++++++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 18 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-02-25 00:44:51 UTC (rev 435640) +++ PKGBUILD 2019-02-25 07:21:56 UTC (rev 435641) @@ -1,36 +1,47 @@ # Maintainer: Jerome Leclanche <[email protected]> +# Co-Maintainer: Chih-Hsuan Yen <[email protected]> pkgname=libqtxdg -pkgver=3.3.0 -pkgrel=2 +pkgver=3.3.1 +pkgrel=1 pkgdesc="Library providing freedesktop.org XDG specs implementations for Qt." arch=("x86_64") -url="http://lxqt.org" -license=("GPL2") +url="https://lxqt.org" +license=("LGPL" "custom") depends=("libsm" "libxkbcommon-x11" "qt5-base" "qt5-svg") -makedepends=("cmake") +makedepends=("cmake" "lxqt-build-tools") +checkdepends=("xorg-server-xvfb") 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" + "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" ) -sha256sums=('14202ba8539adcac13ec1b9a74e61a1965b49c61a7a8e35c8a2924c902371287' +sha256sums=('1061fa6a4783df5e33ea2876f03f88b9ffef8157d37da97ea6b217b736c2d6d6' 'SKIP') validpgpkeys=( - "169704C6FB490C6892C7F23C37E0AF1FDA48F373" # Jerome Leclanche <[email protected]> - "7C733BA5F585AAD669E4D23A42C9C8D3AF5EA5E3" # Alf Gaida <[email protected]> + "169704C6FB490C6892C7F23C37E0AF1FDA48F373" # Jerome Leclanche <[email protected]> + "7C733BA5F585AAD669E4D23A42C9C8D3AF5EA5E3" # Alf Gaida <[email protected]> ) build() { - mkdir -p build - cd build - cmake "$srcdir/$pkgname-$pkgver" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib - make + 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 +} + package() { - cd build - make DESTDIR="$pkgdir" install + 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 }
