blob: b42af0eb884bc2551c1bdf4ed1e0ca0f0bc940a6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
pkgname=libqtxdg
pkgver=3.0.0
pkgrel=0
pkgdesc="Qt5-based library implementing the XDG spec."
url="http://lxqt.org"
arch="all"
license="LGPL-2.1+"
depends=""
depends_dev=""
makedepends="cmake qt5-qtbase-dev qt5-qtsvg-dev extra-cmake-modules $depends_dev"
install=""
subpackages="$pkgname-dev"
source="https://github.com/lxde/libqtxdg/releases/download/$pkgver/libqtxdg-$pkgver.tar.xz"
builddir="$srcdir/libqtxdg-$pkgver"
# tests require X
options="!check"
build() {
cd "$builddir"
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
-DBUILD_TESTS=True \
-DBUILD_DEV_UTILS=True \
${CMAKE_CROSSOPTS}
make
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
sha512sums="de3ca26c1f682f3ec3409dd81a397ec573f981ac71e7eab6f410bba18df7d45c6e0d7a037990cccd04901eda8de99aa059c5e090c26f59b560b7f61a4630ae23 libqtxdg-3.0.0.tar.xz"
|