Package Details: kristall 0.3-0

Git Clone URL: https://aur.archlinux.org/kristall.git (read-only, click to copy)
Package Base: kristall
Description: A high-quality visual cross-platform gemini browser.
Upstream URL: https://github.com/MasterQ32/kristall
Licenses: GPL3
Submitter: das_kube
Maintainer: das_kube
Last Packager: das_kube
Votes: 2
Popularity: 1.04
First Submitted: 2020-06-26 22:13
Last Updated: 2020-07-07 16:56

Latest Comments

jonathon commented on 2020-07-05 11:17

Slightly larger git diff to:

  1. Remove extraneous variables
  2. Put make in the correct place (build())
  3. Further fix up the desktop launcher and include icons
  4. Switch to a modern checksum
diff --git a/.SRCINFO b/.SRCINFO
index e244f59..b69e6c1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -9,9 +9,8 @@ pkgbase = kristall
    depends = qt5-multimedia
    depends = openssl
    depends = qt5-svg
-   provides = kristall
    source = https://github.com/MasterQ32/kristall/archive/V0.3.tar.gz
-   md5sums = 40b08c53df0b445e5307ee61b5f5f05b
+   b2sums = 3e00243cf455ad810e8d51333b63186e637de1c292a116dbb4273825c51b1c1bf1921bfd243acb97e13dc201b3dcce7240f3c66368b66b607e5c207a2d901934

 pkgname = kristall

diff --git a/PKGBUILD b/PKGBUILD
index 1a4d4ca..8b2d35e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,22 +2,34 @@
 pkgname=kristall
 pkgver=0.3
 pkgrel=0
-epoch=
 pkgdesc="A high-quality visual cross-platform gemini browser."
 arch=('x86_64')
 url="https://github.com/MasterQ32/kristall"
 license=('GPL3')
 depends=('qt5-base' 'qt5-multimedia' 'openssl' 'qt5-svg')
-makedepends=()
-provides=('kristall')
 source=("https://github.com/MasterQ32/kristall/archive/V0.3.tar.gz")
+b2sums=('3e00243cf455ad810e8d51333b63186e637de1c292a116dbb4273825c51b1c1bf1921bfd243acb97e13dc201b3dcce7240f3c66368b66b607e5c207a2d901934')

-package() {
-  cd "$srcdir/kristall-$pkgver"
+prepare() {
+  # Fix desktop launcher icon name (allow per-theme override)
+  sed -i 's/net.random-projects.//' $pkgname-$pkgver/Kristall.desktop
+}
+
+build() {
+  cd $pkgname-$pkgver
   make
+}
+
+package() {
+  cd $pkgname-$pkgver
+
   install -D build/kristall "$pkgdir/usr/bin/kristall"
   install -D LICENSE "$pkgdir/usr/share/licenses/kristall/LICENSE"
   install -Dm644 Kristall.desktop "$pkgdir/usr/share/applications/kristall.desktop"
+
+  for size in 16 32 64 128; do
+    install -Dm644 src/icons/kristall-$size.png "$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/kristall.png"
+  done
+  install -Dm644 src/icons/kristall.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/kristall.svg"
 }

-md5sums=('40b08c53df0b445e5307ee61b5f5f05b')

jonathon commented on 2020-07-04 16:32

Small git diff to fix up the desktop launcher:

diff --git a/PKGBUILD b/PKGBUILD
index 1ae51a6..1a4d4ca 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,8 +17,7 @@ package() {
   make
   install -D build/kristall "$pkgdir/usr/bin/kristall"
   install -D LICENSE "$pkgdir/usr/share/licenses/kristall/LICENSE"
-  cp Kristall.desktop "$HOME/.local/share/applications/kristall.desktop"
-  update-desktop-database "$HOME/.local/share/applications"
+  install -Dm644 Kristall.desktop "$pkgdir/usr/share/applications/kristall.desktop"
 }

 md5sums=('40b08c53df0b445e5307ee61b5f5f05b')

jgbyrne commented on 2020-06-26 23:44

Thanks for the package. Please add a dependency on qt5-svg. Cheers!