summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmytro Meleshko2020-09-19 20:31:32 +0300
committerDmytro Meleshko2020-09-19 20:35:26 +0300
commit4e8dcfbce45b370df3fcb2a1bb7eed6f8a5a90fb (patch)
tree1ae12599220da289205e450e99fe63412c6b61ab
downloadaur-polkit-gnome-git.tar.gz
initial commit
-rw-r--r--.SRCINFO23
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD45
-rw-r--r--polkit-gnome-git-authentication-agent-1.desktop87
-rw-r--r--polkit-gnome-git-label-wrap-fix.patch26
5 files changed, 186 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..29ee578cfd3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = polkit-gnome-git
+ pkgdesc = Legacy polkit authentication agent for GNOME
+ pkgver = 0.105.r66.ga0763a2
+ pkgrel = 1
+ url = https://www.freedesktop.org/wiki/Software/polkit/
+ arch = x86_64
+ license = LGPL
+ makedepends = git
+ makedepends = gnome-common
+ makedepends = intltool
+ depends = polkit
+ depends = gtk3
+ provides = polkit-gnome
+ conflicts = polkit-gnome
+ source = polkit-gnome-git::git+https://gitlab.gnome.org/Archive/policykit-gnome.git
+ source = polkit-gnome-git-authentication-agent-1.desktop
+ source = polkit-gnome-git-label-wrap-fix.patch
+ sha256sums = SKIP
+ sha256sums = 5074c723a4eab274830587d799ba781ff57f4fbe4ac99fbdc5aac5009c441ee7
+ sha256sums = 67674d940e063520c518027ac2fe5e55797936c620f31286501f39f0b6ed7581
+
+pkgname = polkit-gnome-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..222b7b7b3cf
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+/src/
+/pkg/
+/polkit-gnome-*.pkg.tar.*
+
+/polkit-gnome-git/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..658b122780b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Dmytro Meleshko <dmytro.meleshko@gmail.com>
+# Based on <https://github.com/archlinux/svntogit-community/blob/8963650797cfe0383ef510e9c0492b2cb22a2593/trunk/PKGBUILD>
+_pkgname=polkit-gnome
+pkgname="${_pkgname}-git"
+pkgver=0.105.r66.ga0763a2
+pkgrel=1
+pkgdesc="Legacy polkit authentication agent for GNOME"
+arch=('x86_64')
+url="https://www.freedesktop.org/wiki/Software/polkit/"
+license=('LGPL')
+depends=('polkit' 'gtk3')
+makedepends=('git' 'gnome-common' 'intltool')
+provides=("$_pkgname")
+conflicts=("$_pkgname")
+source=("${pkgname}::git+https://gitlab.gnome.org/Archive/policykit-gnome.git"
+ "${pkgname}-authentication-agent-1.desktop"
+ "${pkgname}-label-wrap-fix.patch")
+sha256sums=('SKIP'
+ '5074c723a4eab274830587d799ba781ff57f4fbe4ac99fbdc5aac5009c441ee7'
+ '67674d940e063520c518027ac2fe5e55797936c620f31286501f39f0b6ed7581')
+
+pkgver() {
+ cd "${pkgname}"
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd "${pkgname}"
+ patch --forward --strip=0 --input="${srcdir}/${pkgname}-label-wrap-fix.patch"
+}
+
+build() {
+ cd "${pkgname}"
+ ./autogen.sh
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir="/usr/lib/${_pkgname}"
+ make
+}
+
+package() {
+ cd "${pkgname}"
+ make DESTDIR="$pkgdir" install
+ install -Dm644 \
+ "${srcdir}/${pkgname}-authentication-agent-1.desktop" \
+ "${pkgdir}/usr/share/applications/${_pkgname}-authentication-agent-1.desktop"
+}
diff --git a/polkit-gnome-git-authentication-agent-1.desktop b/polkit-gnome-git-authentication-agent-1.desktop
new file mode 100644
index 00000000000..c45acfa5435
--- /dev/null
+++ b/polkit-gnome-git-authentication-agent-1.desktop
@@ -0,0 +1,87 @@
+[Desktop Entry]
+Name=PolicyKit Authentication Agent
+Name[ar]=مدير الاستيثاق PolicyKit
+Name[be]=PolicyKit - аґент аўтэнтыфікацыі
+Name[bn_IN]=PolicyKit অনুমোদনের এজেন্ট
+Name[ca]=Agent d'autenticació del PolicyKit
+Name[cs]=Ověřovací agent PolicyKit
+Name[da]=Godkendelsesprogrammet PolicyKit
+Name[de]=Legitimationsdienst von PolicyKit
+Name[el]=Πράκτορας πιστοποίησης PolicyKit
+Name[en_GB]=PolicyKit Authentication Agent
+Name[es]=Agente de autenticación de PolicyKit
+Name[eu]=PolicyKit autentifikatzeko agentea
+Name[fi]=PolicytKit-tunnistautumisohjelma
+Name[fr]=Agent d'authentification de PolicyKit
+Name[gl]=Axente de autenticación PolicyKit
+Name[gu]=PolicyKit સત્તાધિકરણ એજન્ટ
+Name[hi]=PolicyKit प्रमाणीकरण प्रतिनिधि
+Name[hu]=PolicyKit hitelesítési ügynök
+Name[it]=Agente di autenticazione per PolicyKit
+Name[ja]=PolicyKit 認証エージェント
+Name[kn]=PolicyKit ದೃಢೀಕರಣ ಮಧ್ಯವರ್ತಿ
+Name[lt]=PolicyKit tapatybės nustatymo agentas
+Name[ml]=പോളിസിക്കിറ്റ് ഓഥന്റിക്കേഷന്‍ ഏജന്റ്
+Name[mr]=PolicyKit ऑथेंटीकेशन एजेंट
+Name[or]=PolicyKit ବୈଧିକରଣ ସଦସ୍ୟ
+Name[pa]=ਪਾਲਸੀਕਿੱਟ ਪਰਮਾਣਕਿਤਾ ਏਜੰਟ
+Name[pl]=Agent uwierzytelniania PolicyKit
+Name[pt]=Agente de Autenticação PolicyKit
+Name[pt_BR]=Agente de autenticação PolicyKit
+Name[ro]=Agent de autentificare PolicyKit
+Name[sk]=Agent PolicyKit na overovanie totožnosti
+Name[sl]=PolicyKit program overjanja
+Name[sv]=Autentiseringsagent för PolicyKit
+Name[ta]=PolicyKit அங்கீகார முகவர்
+Name[te]=పాలసీకిట్ ధృవీకరణ ప్రతినిధి
+Name[th]=ตัวกลางสำหรับยืนยันตัวบุคคล PolicyKit
+Name[uk]=Агент автентифікації PolicyKit
+Name[zh_CN]=PolicyKit 认证代理
+Name[zh_HK]=PolicyKit 驗證代理程式
+Name[zh_TW]=PolicyKit 驗證代理程式
+Comment=PolicyKit Authentication Agent
+Comment[ar]=مدير الاستيثاق PolicyKit
+Comment[be]=PolicyKit - аґент аўтэнтыфікацыі
+Comment[bn_IN]=PolicyKit অনুমোদনের এজেন্ট
+Comment[ca]=Agent d'autenticació del PolicyKit
+Comment[cs]=Ověřovací agent PolicyKit
+Comment[da]=Godkendelsesprogrammet PolicyKit
+Comment[de]=Legitimationsdienst von PolicyKit
+Comment[el]=Πράκτορας πιστοποίησης PolicyKit
+Comment[en_GB]=PolicyKit Authentication Agent
+Comment[es]=Agente de autenticación de PolicyKit
+Comment[eu]=PolicyKit autentifikatzeko agentea
+Comment[fi]=PolicytKit-tunnistautumisohjelma
+Comment[fr]=Agent d'authentification de PolicyKit
+Comment[gl]=Axente de autenticación PolicyKit
+Comment[gu]=PolicyKit સત્તાધિકરણ એજન્ટ
+Comment[hi]=PolicyKit प्रमाणीकरण प्रतिनिधि
+Comment[hu]=PolicyKit hitelesítési ügynök
+Comment[it]=Agente di autenticazione per PolicyKit
+Comment[ja]=PolicyKit 認証エージェント
+Comment[kn]=PolicyKit ದೃಢೀಕರಣ ಮಧ್ಯವರ್ತಿ
+Comment[lt]=PolicyKit tapatybės nustatymo agentas
+Comment[ml]=പോളിസിക്കിറ്റ് ഓഥന്റിക്കേഷന്‍ ഏജന്റ്
+Comment[mr]=PolicyKit ऑथेंटीकेशन एजेंट
+Comment[or]=PolicyKit ବୈଧିକରଣ ସଦସ୍ୟ
+Comment[pa]=ਪਾਲਸੀਕਿੱਟ ਪਰਮਾਣਕਿਤਾ ਏਜੰਟ
+Comment[pl]=Agent uwierzytelniania PolicyKit
+Comment[pt]=Agente de Autenticação PolicyKit
+Comment[pt_BR]=Agente de autenticação PolicyKit
+Comment[ro]=Agent de autentificare PolicyKit
+Comment[sk]=Agent PolicyKit na overovanie totožnosti
+Comment[sl]=PolicyKit program overjanja
+Comment[sv]=Autentiseringsagent för PolicyKit
+Comment[ta]=PolicyKit அங்கீகார முகவர்
+Comment[te]=పాలసీకిట్ ధృవీకరణ ప్రతినిధి
+Comment[th]=ตัวกลางสำหรับยืนยันตัวบุคคล PolicyKit
+Comment[uk]=Агент автентифікації PolicyKit
+Comment[zh_CN]=PolicyKit 认证代理
+Comment[zh_HK]=PolicyKit 驗證代理程式
+Comment[zh_TW]=PolicyKit 驗證代理程式
+Exec=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
+Terminal=false
+Type=Application
+Categories=
+NoDisplay=true
+OnlyShowIn=GNOME;
diff --git a/polkit-gnome-git-label-wrap-fix.patch b/polkit-gnome-git-label-wrap-fix.patch
new file mode 100644
index 00000000000..8c18015f442
--- /dev/null
+++ b/polkit-gnome-git-label-wrap-fix.patch
@@ -0,0 +1,26 @@
+--- src/polkitgnomeauthenticationdialog.c 2011-10-25 18:30:59.000000000 +0300
++++ src/polkitgnomeauthenticationdialog.c 2020-09-19 19:54:39.916298638 +0300
+@@ -566,6 +566,7 @@
+ g_free (s);
+ gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+ gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
++ gtk_label_set_max_width_chars (GTK_LABEL (label), 70);
+ gtk_box_pack_start (GTK_BOX (main_vbox), label, FALSE, FALSE, 0);
+
+ /* secondary message */
+@@ -593,6 +594,7 @@
+ }
+ gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+ gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
++ gtk_label_set_max_width_chars (GTK_LABEL (label), 70);
+ gtk_box_pack_start (GTK_BOX (main_vbox), label, FALSE, FALSE, 0);
+
+ /* user combobox */
+@@ -636,6 +638,7 @@
+ /* A label for showing PAM_TEXT_INFO and PAM_TEXT_ERROR messages */
+ label = gtk_label_new (NULL);
+ gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
++ gtk_label_set_max_width_chars (GTK_LABEL (label), 70);
+ gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
+ dialog->priv->info_label = label;
+