summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2017-11-22 16:21:00 -0300
committerDavid P <megver83@parabola.nu>2017-11-22 16:21:00 -0300
commit617585771f60af6b6a0ca4486e8d9fa374929733 (patch)
tree6fb519bb1fcf940ef8bd6a8dc2a6c4790e00adbb /pcr
parent5bbabae25867e9eb4e1ef1bf2f1d925a852b9d32 (diff)
downloadabslibre-617585771f60af6b6a0ca4486e8d9fa374929733.tar.gz
abslibre-617585771f60af6b6a0ca4486e8d9fa374929733.tar.bz2
abslibre-617585771f60af6b6a0ca4486e8d9fa374929733.zip
pcr/quaternion: add new pkg
Diffstat (limited to 'pcr')
-rw-r--r--pcr/quaternion/PKGBUILD53
1 files changed, 53 insertions, 0 deletions
diff --git a/pcr/quaternion/PKGBUILD b/pcr/quaternion/PKGBUILD
new file mode 100644
index 000000000..d478f93d5
--- /dev/null
+++ b/pcr/quaternion/PKGBUILD
@@ -0,0 +1,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/"
+}
+