makedeb


ente-auth-bin 2.0.54-3


2FA app from ente. An end-to-end encrypted, cross platform and free app for storing your 2FA codes with cloud backups.

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

Commit:


Hash: 2daa144d82281b7b0cf5cc0318d1b3cb1b91bd00

Message: Add back install script from AUR * Hopefully this works now

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 53115b0..335308b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,23 +1,24 @@
 pkgbase = ente-auth-bin
-	pkgdesc = Ente's 2FA app. An end-to-end encrypted, cross platform and free app for storing your 2FA codes with cloud backups.
+	pkgdesc = 2FA app from ente. An end-to-end encrypted, cross platform and free app for storing your 2FA codes with cloud backups.
 	pkgver = 2.0.54
-	pkgrel = 2
+	pkgrel = 3
 	url = https://github.com/ente-io/ente/tree/main/auth
+	install = ente-auth-bin.install
 	arch = amd64
 	license = AGPL-3.0-or-later
 	depends = at-spi2-core
-	depends = libayatana-ido3-0.4-0
-	depends = libcairo2
 	depends = desktop-file-utils
 	depends = gcc
-	depends = libgdk-pixbuf2.0-0
-	depends = libglib2.0-0
 	depends = glibc-tools
-	depends = libgtk-3-0
-	depends = libharfbuzz-bin
 	depends = hicolor-icon-theme
 	depends = libappindicator3-1
 	depends = libayatana-appindicator3-1
+	depends = libayatana-ido3-0.4-0
+	depends = libcairo2
+	depends = libgdk-pixbuf2.0-0
+	depends = libglib2.0-0
+	depends = libgtk-3-0
+	depends = libharfbuzz-bin
 	depends = libsecret-1-0
 	depends = libsodium23
 	depends = libpango1.0-0
diff --git a/PKGBUILD b/PKGBUILD
index 8130c2b..ce44645 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,15 +2,16 @@
 
 pkgname=ente-auth-bin
 pkgver=2.0.54
-pkgrel=2
-pkgdesc="Ente's 2FA app. An end-to-end encrypted, cross platform and free app for storing your 2FA codes with cloud backups."
+pkgrel=3
+pkgdesc="2FA app from ente. An end-to-end encrypted, cross platform and free app for storing your 2FA codes with cloud backups."
 arch=('amd64')
 url="https://github.com/ente-io/ente/tree/main/auth"
 license=('AGPL-3.0-or-later')
-depends=('at-spi2-core' 'libayatana-ido3-0.4-0' 'libcairo2' 'desktop-file-utils' 'gcc' 'libgdk-pixbuf2.0-0' 'libglib2.0-0'
-         'glibc-tools' 'libgtk-3-0' 'libharfbuzz-bin' 'hicolor-icon-theme' 'libappindicator3-1' 'libayatana-appindicator3-1'
-         'libsecret-1-0' 'libsodium23' 'libpango1.0-0' 'sqlite3' 'webkit2gtk-driver')
+depends=('at-spi2-core' 'desktop-file-utils' 'gcc' 'glibc-tools' 'hicolor-icon-theme' 'libappindicator3-1'
+         'libayatana-appindicator3-1' 'libayatana-ido3-0.4-0' 'libcairo2' 'libgdk-pixbuf2.0-0' 'libglib2.0-0' 'libgtk-3-0'
+         'libharfbuzz-bin' 'libsecret-1-0' 'libsodium23' 'libpango1.0-0' 'sqlite3' 'webkit2gtk-driver')
 options=('!strip' '!emptydirs')
+install=${pkgname}.install
 source=("https://github.com/ente-io/ente/releases/download/auth-v${pkgver}/ente-auth-v${pkgver}-x86_64.deb")
 b2sums=('d1e01caa90f02de0a9cacfad79f47cdf1151d2f3fa38aaa0a90c9bef6ddb7b561cd5a151ae35f39eb8fe5698ae1f36812cff3e366b5aff2f2a4ede6c637607f8')
 provides=("ente-auth")
diff --git a/ente-auth-bin.install b/ente-auth-bin.install
new file mode 100644
index 0000000..2cc8691
--- /dev/null
+++ b/ente-auth-bin.install
@@ -0,0 +1,18 @@
+post_install() {
+	gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+	ln -s /usr/share/ente_auth/ente_auth /usr/bin/ente_auth
+	chmod +x /usr/bin/ente_auth
+	update-desktop-database -q
+	ln -s /usr/lib/libsodium.so /usr/lib/libsodium.so.23
+}
+
+post_upgrade() {
+	post_install
+}
+
+post_remove() {
+	gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+	rm /usr/bin/ente_auth
+	update-desktop-database -q
+	rm /usr/lib/libsodium.so.23
+}