blob: 776295f7d79a9348c1b7176f6b2dfe310ff04547 (
plain)
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
49
50
51
52
53
54
55
56
57
58
|
# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
pkgname=nheko
pkgver=0.3.1
pkgrel=0
pkgdesc="Qt5-based client for Matrix protocol"
url="https://github.com/mujx/nheko"
arch="all !x86"
license="GPL-3.0+"
depends=""
depends_dev=""
makedepends="clang cmake qt5-qtbase-dev qt5-qttools-dev qt5-qtmultimedia-dev lmdb-dev $depends_dev"
install=""
source="$pkgname-$pkgver.tar.gz::https://github.com/mujx/nheko/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
# no test suite
options="!check"
build() {
cd "$builddir"
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
mkdir -p build
cd "$builddir"/build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_SKIP_RPATH=True \
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
-DCMAKE_CXX_FLAGS="$CXXFLAGS -stdlib=libstdc++" \
-DCMAKE_C_FLAGS="$CFLAGS" \
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_C_COMPILER=clang \
${CMAKE_CROSSOPTS} ..
make
}
check() {
cd "$builddir"/build
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
cd "$builddir"/build
install -D -m755 nheko "$pkgdir"/usr/bin/nheko
install -D -m644 ../resources/nheko-256.png "$pkgdir"/usr/share/pixmaps/nheko-256.png
install -D -m644 ../resources/nheko.desktop "$pkgdir"/usr/share/applications/nheko.desktop
local size dir
for size in 16 32 48 64 128 256 512; do
dir="$pkgdir"/usr/share/icons/hicolor/${size}x${size}/apps
install -D -m644 ../resources/nheko-${size}.png "$dir"/nheko.png;
done
}
sha512sums="222dae93d5c6074e38eb761228fbfb6498ec49dc274d36ed0b3a1690da0f5ded6a11a7456fd963dc5a99124efc2724cfb3d7b205a91ea4c98888e843bbfa8e97 nheko-0.3.1.tar.gz"
|