summaryrefslogtreecommitdiff
path: root/pcr/quaternion/PKGBUILD
blob: d478f93d53ca5009b861146923764307d6d17ffb (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
# Maintainer: David P. <megver83@parabola.nu>
# Maintainer (AUR): Ivan Semkin <ivan@semkin.ru>
# Contributor: Martin Weinelt <hexa@darmstadt.ccc.de>
 
pkgname=quaternion
pkgver=0.0.4
_libver=0.1
pkgrel=1
pkgdesc="Qt5-based IM client for the Matrix protocol"
arch=('any')
url="https://github.com/Fxrh/Quaternion"
license=('GPL3')
depends=('qt5-base' 'qt5-declarative' 'qt5-quickcontrols')
makedepends=('git' 'tar' 'cmake')
provides=('quaternion')
conflicts=('quaternion')
source=("https://github.com/QMatrixClient/Quaternion/archive/v${pkgver}.tar.gz"
        "https://github.com/QMatrixClient/libqmatrixclient/archive/v${_libver}.tar.gz")
sha512sums=('4df975fbfa053cc2abdb2026e5af3f539e0b9869475d61167d7a6017881fb3ce21b6db6e2f35d30148c3dad71b5489951050a33dba944f9151431a30b97ca926'
            '60cb7b3656ec359c2883f32ccc2b5561dfa9dc25c6d288fbe58babf7f38cfabfd9067c9e232fbe0514e2c57a9ba79a5a665e99727906e1070cf379c9bc599ae4')

prepare() {
	cd ${srcdir}
	cp -r libqmatrixclient-${_libver}/* ${pkgname^}-${pkgver}/lib/
}

build() {
    cd ${srcdir}/${pkgname^}-${pkgver}
	[ -d build ] || mkdir build
	cd build
	cmake ..
	make $MAKEFLAGS
}
 
package() {
	cd ${srcdir}/${pkgname^}-${pkgver}

	# The application
	install -Dm755 "build/quaternion" -t "$pkgdir/usr/bin/"

	# .desktop file
	install -Dm644 "linux/quaternion.desktop" -t "$pkgdir/usr/share/applications/"

	# Icons
	install -Dm644 "icons/quaternion/16-apps-quaternion.png" -t "$pkgdir/usr/share/icons/hicolor/16x16/apps/"
	install -Dm644 "icons/quaternion/22-apps-quaternion.png" -t "$pkgdir/usr/share/icons/hicolor/22x22/apps/"
	install -Dm644 "icons/quaternion/32-apps-quaternion.png" -t "$pkgdir/usr/share/icons/hicolor/32x32/apps/"
	install -Dm644 "icons/quaternion/48-apps-quaternion.png" -t "$pkgdir/usr/share/icons/hicolor/48x48/apps/"
	install -Dm644 "icons/quaternion/64-apps-quaternion.png" -t "$pkgdir/usr/share/icons/hicolor/64x64/apps/"
	install -Dm644 "icons/quaternion/128-apps-quaternion.png" -t "$pkgdir/usr/share/icons/hicolor/128x1128/apps/"
	install -Dm644 "icons/quaternion/sources/quaternion.svg" -t "$pkgdir/usr/share/icons/hicolor/scalable/apps/"
}