Package Details: kristall 0.4-3

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://kristall.random-projects.net
Licenses: GPL-3.0-or-later
Submitter: das_kube
Maintainer: yochananmarqos
Last Packager: yochananmarqos
Votes: 17
Popularity: 0.180802
First Submitted: 2020-06-26 22:13 (UTC)
Last Updated: 2024-09-03 18:03 (UTC)

Latest Comments

simonrepp commented on 2020-10-25 16:27 (UTC)

According to my understanding of https://wiki.archlinux.org/index.php/PKGBUILD#license I think the LICENSE does not need to be copied as it is among the well-known ones contained in the licenses package. Just a remark though (no action required) in the hope of being correct and useful. Thank you for packaging this!

jonathon commented on 2020-07-05 11:17 (UTC)

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 (UTC)

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 (UTC)

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