summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorquoteme2021-02-10 18:56:21 +0100
committerquoteme2021-02-10 18:56:21 +0100
commit14a563fdd420d72b5ea6f01c9fddcddf99bd7436 (patch)
tree0402a480a3112136155f84e21eda34b14a993b71
downloadaur-14a563fdd420d72b5ea6f01c9fddcddf99bd7436.tar.gz
first publishing of the fix
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD41
-rw-r--r--networkmanager-dmenu-bluetoothfix.install8
3 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c5e4164df52
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = networkmanager-dmenu-bluetoothfix-git
+ pkgdesc = Control NetworkManager via emenu (+fix to toggle bluetooth)
+ pkgver = r58.2770261
+ pkgrel = 1
+ url = https://github.com/Quoteme/networkmanager-dmenu-bluetoothfix
+ install = networkmanager-dmenu-bluetoothfix.install
+ arch = any
+ license = MIT
+ makedepends = git
+ depends = python
+ depends = networkmanager
+ depends = python-gobject
+ optdepends = dmenu: either dmenu or rofi is required
+ optdepends = rofi: either dmenu or rofi is required
+ optdepends = network-manager-applet: for the nm-connection-editor GUI
+ provides = networkmanager-dmenu-bluetoothfix
+ conflicts = networkmanager-dmenu-bluetoothfix
+ source = networkmanager-dmenu-bluetoothfix::git+https://github.com/firecat53/networkmanager-dmenu-bluetoothfix.git
+ md5sums = SKIP
+
+pkgname = networkmanager-dmenu-bluetoothfix-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1edf134b469
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Luca Leon Happel (Quoteme)
+# This is a fork of the original networkmanager_dmenu by
+# Scott Hansen (firecat53) firecat4153 at gmail dot com
+_pkgname=networkmanager-dmenu-bluetoothfix
+_gitname=networkmanager-dmenu-bluetoothfix
+pkgname=$_pkgname-git
+pkgver=r58.2770261
+pkgrel=1
+pkgdesc="Control NetworkManager via emenu (+fix to toggle bluetooth)"
+arch=('any')
+url="https://github.com/Quoteme/networkmanager-dmenu-bluetoothfix"
+license=('MIT')
+depends=('python' 'networkmanager' 'python-gobject')
+makedepends=('git')
+optdepends=('dmenu: either dmenu or rofi is required'
+ 'rofi: either dmenu or rofi is required'
+ 'network-manager-applet: for the nm-connection-editor GUI')
+provides=("$_pkgname")
+conflicts=("$_pkgname")
+source=("$_pkgname::git+https://github.com/firecat53/$_gitname.git")
+md5sums=('SKIP')
+install="$_pkgname.install"
+
+pkgver() {
+ cd "$_pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ echo "IMPORTANT: +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+"
+ echo "IMPORTANT: add the following line to 'etc/sudoers':"
+ echo "IMPORTANT: "
+ echo "IMPORTANT: %wheel ALL=NOPASSWD:/bin/bluetooth"
+ echo "IMPORTANT: "
+ echo "IMPORTANT: +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+"
+ install -Dm755 "$srcdir/$_pkgname/networkmanager_dmenu" "$pkgdir/usr/bin/networkmanager_dmenu"
+ install -Dm644 "$srcdir/$_pkgname/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 "$srcdir/$_pkgname/README.rst" "$pkgdir/usr/share/doc/$pkgname/README.rst"
+ install -Dm644 "$srcdir/$_pkgname/config.ini.example" "$pkgdir/usr/share/doc/$pkgname/config.ini.example"
+ install -Dm644 "$srcdir/$_pkgname/networkmanager_dmenu.desktop" "$pkgdir/usr/share/applications/networkmanager_dmenu.desktop"
+}
diff --git a/networkmanager-dmenu-bluetoothfix.install b/networkmanager-dmenu-bluetoothfix.install
new file mode 100644
index 00000000000..f0fe7c7abab
--- /dev/null
+++ b/networkmanager-dmenu-bluetoothfix.install
@@ -0,0 +1,8 @@
+## arg 1: the new package version
+post_install() {
+cat <<End-of-message
+
+To customize dmenu, copy /usr/share/doc/networkmanager-dmenu-git/config.ini.example into ~/.config/networkmanager-dmenu/config.ini and edit:
+
+End-of-message
+}