makedeb


lens-bin 5.3.2-1


The Kubernetes IDE

Click here to go back to the commit logs for lens-bin.

Commit:


Hash: 7a10180b7900e5b0b5a22a0b37772c97cfddb9b7

Message: upgpkg: lens-bin 4.0.7-1 upstream release

Diff


diff --git a/.SRCINFO b/.SRCINFO
index f9b40d6..e55755d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,21 @@
 pkgbase = lens-bin
-	pkgdesc = The Kubernetes IDE (previously Kontena Lens)
-	pkgver = 4.0.6
+	pkgdesc = The Kubernetes IDE
+	pkgver = 4.0.7
 	pkgrel = 1
 	url = https://k8slens.dev
 	arch = x86_64
 	license = MIT
+	depends = alsa-lib
+	depends = gtk3
 	depends = libxss
 	depends = libxtst
+	depends = nss
 	provides = lens
 	conflicts = lens
-	source = https://github.com/lensapp/lens/releases/download/v4.0.6/Lens-4.0.6.AppImage
+	source = lens-4.0.7.AppImage::https://github.com/lensapp/lens/releases/download/v4.0.7/Lens-4.0.7.AppImage
 	source = lens.desktop
-	source = lens.sh
-	sha512sums = 560ef75e73c3c533b24e21839120af904f71144cea43501c086036847b3293e7cfab3157fa83294f88209adf567d71a057b99fe5d79a1debcf77afdbd425f0bd
-	sha512sums = ff81d0bfd155766462b1a7b37fe1aed4cb1b80b5afe2310a922a94b4f8801e104fde56d279fe5944dcd36dff38650b0d83bc99d11613a4dc87064a952a2b9364
-	sha512sums = 382f51df6df222dee97021cc0dc2eca76dd510f32461da836a9265fad28549be43e272e7b36a65332e7bd53beb27128e1b0379b430a4f07ad327e14cea3596a1
+	sha256sums = 670f970d413942afc202f55c040c9fa87057d560f7fadec90849f917d474450a
+	sha256sums = 3db5b267cededcc73b3e35b89b46fca419e82832b85fa633e4326156cf648d02
 
 pkgname = lens-bin
 
diff --git a/.gitignore b/.gitignore
index 6565eb4..e1a9b4b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,5 @@
-src/
-pkg/
-*.tar.xz
-*.pkg.tar.zst
-*.AppImage
-*.AppImage.part
+*
+!.gitignore
+!lens.desktop
+!PKGBUILD
+!.SRCINFO
diff --git a/PKGBUILD b/PKGBUILD
index 77bcace..aa94977 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,44 +1,50 @@
-# Maintainer: zer0def <zer0def@github>
+# Maintainer: "Amhairghin" Oscar Garcia Amor (https://ogarcia.me)
 # Maintainer: istimaldar_sntlk <istimaldar@gmail.com>
+# Contributor: zer0def <zer0def@github>
+
+_pkgname=lens
 pkgname=lens-bin
-pkgver=4.0.6
+pkgver=4.0.7
 pkgrel=1
-pkgdesc='The Kubernetes IDE (previously Kontena Lens)'
+pkgdesc='The Kubernetes IDE'
 arch=('x86_64')
-url='https://k8slens.dev'
 license=('MIT')
-depends=('libxss' 'libxtst')
+url='https://k8slens.dev'
+depends=('alsa-lib' 'gtk3' 'libxss' 'libxtst' 'nss')
 provides=('lens')
 conflicts=('lens')
-
-source=(
-  "https://github.com/lensapp/lens/releases/download/v${pkgver}/Lens-${pkgver}.AppImage"
-  "lens.desktop"
-  "lens.sh"
-)
-sha512sums=(
-  '560ef75e73c3c533b24e21839120af904f71144cea43501c086036847b3293e7cfab3157fa83294f88209adf567d71a057b99fe5d79a1debcf77afdbd425f0bd'
-  'ff81d0bfd155766462b1a7b37fe1aed4cb1b80b5afe2310a922a94b4f8801e104fde56d279fe5944dcd36dff38650b0d83bc99d11613a4dc87064a952a2b9364'
-  '382f51df6df222dee97021cc0dc2eca76dd510f32461da836a9265fad28549be43e272e7b36a65332e7bd53beb27128e1b0379b430a4f07ad327e14cea3596a1'
-)
+source=(${_pkgname}-${pkgver}.AppImage::"https://github.com/lensapp/${_pkgname}/releases/download/v${pkgver}/Lens-${pkgver}.AppImage"
+        "${_pkgname}.desktop")
+sha256sums=('670f970d413942afc202f55c040c9fa87057d560f7fadec90849f917d474450a'
+            '3db5b267cededcc73b3e35b89b46fca419e82832b85fa633e4326156cf648d02')
 
 prepare() {
-  chmod +x "Lens-${pkgver}.AppImage"
-  "./Lens-${pkgver}.AppImage" --appimage-extract &>/dev/null
+  chmod +x "${_pkgname}-${pkgver}.AppImage"
+  "./${_pkgname}-${pkgver}.AppImage" --appimage-extract
 }
 
 package() {
-  install -d "${pkgdir}/opt"
-  cp -a "${srcdir}/squashfs-root" "${pkgdir}/opt/lens"
+  # move the entire distribution to /usr/share
+  mkdir -p "${pkgdir}"/usr/share/${_pkgname}
+  mv "${srcdir}"/squashfs-root/* \
+    "${pkgdir}"/usr/share/${_pkgname}
+
+  # icon
+  install -Dm 644 "${pkgdir}"/usr/share/${_pkgname}/usr/share/icons/hicolor/512x512/apps/kontena-${_pkgname}.png \
+    "${pkgdir}"/usr/share/icons/hicolor/512x512/apps/kontena-${_pkgname}.png
+
+  # desktop file
+  install -Dm 644 "${srcdir}"/${_pkgname}.desktop \
+    "${pkgdir}"/usr/share/applications/${_pkgname}.desktop
+
+  # symlink binary
+  mkdir -p "${pkgdir}"/usr/bin
+  ln -sf /usr/share/${_pkgname}/kontena-lens \
+    "${pkgdir}"/usr/bin/kontena-lens
 
-  install -Dm644 squashfs-root/kontena-lens.png "$pkgdir"/usr/share/icons/hicolor/512x512/apps/kontena-lens.png
-  rm -rf "${pkgdir}/opt/lens/usr"
-  
-  install -Dm644 "${srcdir}/lens.desktop" "${pkgdir}/usr/share/applications/lens.desktop"
-  install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" \
-    "${srcdir}/squashfs-root/resources/LICENSE" \
-    "${srcdir}/squashfs-root/LICENSE.electron.txt" \
-    "${srcdir}/squashfs-root/LICENSES.chromium.html"
-  install -Dm755 "${srcdir}/lens.sh" "${pkgdir}/usr/bin/lens"
-  chmod -R a+rx "${pkgdir}/opt/lens"
+  # clean and fix permissions
+  find "${pkgdir}" -type d -exec chmod 755 {} \;
+  chmod -x "${pkgdir}"/usr/share/${_pkgname}/*.so
+  rm -rf "${pkgdir}"/usr/share/${_pkgname}/kontena-lens.png
+  rm -rf "${pkgdir}"/usr/share/${_pkgname}/usr
 }
diff --git a/lens.desktop b/lens.desktop
index cf550b7..dfe3397 100644
--- a/lens.desktop
+++ b/lens.desktop
@@ -1,9 +1,9 @@
 [Desktop Entry]
-Name=Lens
-Exec=/usr/bin/lens
-Terminal=false
 Type=Application
+Name=Lens
+GenericName=Kubernetes IDE
+Comment=The Kubernetes IDE
 Icon=kontena-lens
-StartupWMClass=Lens
-Comment=Lens - The Kubernetes IDE
-Categories=Network;
+Exec=kontena-lens %U
+Categories=System;
+StartupNotify=true
diff --git a/lens.sh b/lens.sh
deleted file mode 100644
index 97909b3..0000000
--- a/lens.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec /opt/lens/kontena-lens --no-sandbox