From 617585771f60af6b6a0ca4486e8d9fa374929733 Mon Sep 17 00:00:00 2001 From: David P Date: Wed, 22 Nov 2017 16:21:00 -0300 Subject: pcr/quaternion: add new pkg --- pcr/quaternion/PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 pcr/quaternion/PKGBUILD (limited to 'pcr') 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. +# Maintainer (AUR): Ivan Semkin +# Contributor: Martin Weinelt + +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/" +} + -- cgit v1.2.3