summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Hansen2015-06-11 10:03:50 -0700
committerScott Hansen2015-06-11 10:03:50 -0700
commitbd4aa50d9f0d70f83c8211100d286ef44c4e9e3f (patch)
treeba542f2d62ea38acdcc204009d6b193c157821f4
downloadaur-bd4aa50d9f0d70f83c8211100d286ef44c4e9e3f.tar.gz
Initial import to AUR4
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD35
-rw-r--r--networkmanager-dmenu.install8
3 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..42991c367d1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = networkmanager-dmenu-git
+ pkgdesc = Control NetworkManager via dmenu
+ pkgver = r9.0a6fa27
+ pkgrel = 4
+ url = https://github.com/firecat53/nmcli-dmenu
+ install = networkmanager-dmenu.install
+ arch = any
+ license = MIT
+ makedepends = git
+ depends = python
+ depends = networkmanager
+ 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
+ conflicts = networkmanager-dmenu
+ source = networkmanager-dmenu::git+https://github.com/firecat53/nmcli-dmenu.git
+ md5sums = SKIP
+
+pkgname = networkmanager-dmenu-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d1af8b79a95
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Scott Hansen (firecat53) firecat4153 at gmail dot com
+_pkgname=networkmanager-dmenu
+_gitname=nmcli-dmenu
+pkgname=$_pkgname-git
+pkgver=r9.0a6fa27
+pkgrel=4
+pkgdesc="Control NetworkManager via dmenu"
+arch=('any')
+url="https://github.com/firecat53/nmcli-dmenu"
+license=('MIT')
+depends=('python' 'networkmanager')
+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() {
+ install -Dm755 "$srcdir/$_pkgname/nmcli_dmenu" "$pkgdir/usr/bin/nmcli_dmenu"
+ install -Dm644 "$srcdir/$_pkgname/LICENSE.txt" "$pkgdir/usr/share/license/$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/nmcli_dmenu.desktop" "$pkgdir/usr/share/applications/nmcli_dmenu.desktop"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/networkmanager-dmenu.install b/networkmanager-dmenu.install
new file mode 100644
index 00000000000..f0fe7c7abab
--- /dev/null
+++ b/networkmanager-dmenu.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
+}