diff options
author | Luca Weiss | 2018-03-06 22:20:29 +0100 |
---|---|---|
committer | Luca Weiss | 2018-03-06 22:20:29 +0100 |
commit | e089107b0c49a8fc9c2b8efb3aba842c742e2578 (patch) | |
tree | 8f6f43a68d031113111227e316fd751e0d99a0b6 | |
download | aur-e089107b0c49a8fc9c2b8efb3aba842c742e2578.tar.gz |
Initial commit based on nheko-git
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 46 |
2 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cf317f1d43ec --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = nheko + pkgdesc = Desktop client for the Matrix protocol + pkgver = 0.2.0 + pkgrel = 1 + url = https://github.com/mujx/nheko + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = cmake + makedepends = gcc + makedepends = fontconfig + makedepends = qt5-tools + depends = qt5-base + depends = lmdb + depends = qt5-multimedia + source = https://github.com/mujx/nheko/archive/v0.2.0.tar.gz + sha512sums = 3b2a5980e1e0fa38c481a768a4e6511e94d9f38e1457400fcd696cb95d8e86162ff0f468856bdd07b003dc24f21da9edac16d0793952ec3e6c5d9424b5090e2e + +pkgname = nheko + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b08b18cf56f6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Luca Weiss <luca (at) z3ntu (dot) xyz> +# Contributor: Konstantinos Sideris <siderisk at auth dot gr> + +pkgname=nheko +pkgver=0.2.0 +pkgrel=1 +pkgdesc="Desktop client for the Matrix protocol" +arch=("i686" "x86_64") + +url="https://github.com/mujx/nheko" +license=("GPL3") + +depends=("qt5-base" "lmdb" "qt5-multimedia") +makedepends=("cmake" "gcc" "fontconfig" "qt5-tools") + +source=(https://github.com/mujx/nheko/archive/v$pkgver.tar.gz) +sha512sums=('3b2a5980e1e0fa38c481a768a4e6511e94d9f38e1457400fcd696cb95d8e86162ff0f468856bdd07b003dc24f21da9edac16d0793952ec3e6c5d9424b5090e2e') + +build() { + cd "$pkgname-$pkgver" + cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo + cmake --build build +} + +package() { + # Creating needed directories + install -dm755 "$pkgdir/usr/bin" + install -dm755 "$pkgdir/usr/share/pixmaps/" + install -dm755 "$pkgdir/usr/share/applications/" + + # Program + install -Dm755 "$pkgname-$pkgver/build/nheko" "$pkgdir/usr/bin/nheko" + + # Desktop launcher + install -Dm644 "$pkgname-$pkgver/resources/nheko-256.png" "$pkgdir/usr/share/pixmaps/nheko.png" + install -Dm644 "$pkgname-$pkgver/resources/nheko.desktop" "$pkgdir/usr/share/applications/nheko.desktop" + + # Icons + local icon_size icon_dir + for icon_size in 16 32 48 64 128 256 512; do + icon_dir="$pkgdir/usr/share/icons/hicolor/${icon_size}x${icon_size}/apps" + install -d "$icon_dir" + install -m644 "$pkgname-$pkgver/resources/nheko-${icon_size}.png" "$icon_dir/nheko.png" + done +} + |