summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD26
-rw-r--r--netctltray.install7
3 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..25f1fcac8eb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = netctltray
+ pkgdesc = Tray icon to switch netctl profiles.
+ pkgver = 0.2
+ pkgrel = 1
+ url = https://github.com/dopefishh/netctl-tray
+ install = netctltray.install
+ arch = any
+ license = custom
+ depends = python
+ depends = python-pyside
+ optdepends = x11-ssh-askpass: Graphical password entry
+ optdepends = sudo: Get permission to run netctl
+ source = netctltray.install
+ source = https://github.com/dopefishh/netctl-tray/archive/0.2a.tar.gz
+ md5sums = 8d4a5c22de4ae9c1c3dcdea32d2359e4
+ md5sums = 74b877fb907b2e74183416e0dfcb17e6
+
+pkgname = netctltray
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ffa495524cc
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Your Name <mart@martlubbers.net>
+pkgname=netctltray
+pkgver=0.2
+pkgrel=1
+pkgdesc="Tray icon to switch netctl profiles."
+arch=('any')
+url="https://github.com/dopefishh/netctl-tray"
+license=('custom')
+depends=('python' 'python-pyside')
+optdepends=('x11-ssh-askpass: Graphical password entry'
+ 'sudo: Get permission to run netctl')
+install=netctltray.install
+source=('netctltray.install')
+source+=("https://github.com/dopefishh/netctl-tray/archive/${pkgver}a.tar.gz")
+md5sums=('8d4a5c22de4ae9c1c3dcdea32d2359e4' '74b877fb907b2e74183416e0dfcb17e6')
+
+package() {
+ cd netctl-tray-0.2a
+ gzip -9v netctltray.1
+ install -vd "$pkgdir"{/opt/netctltray/,/usr/{bin,share/{licenses/netctltray,/man/man1}}}
+ install -vm 755 netctltray.py "$pkgdir"/opt/netctltray/
+ install -vm 644 netctltray.1.gz "$pkgdir"/usr/share/man/man1/
+ install -vm 644 licence "$pkgdir"/usr/share/licenses/netctltray/
+ install -vm 644 netctl.py check.svg icon.svg "$pkgdir"/opt/netctltray/
+ ln -sf /opt/netctltray/netctltray.py "$pkgdir"/usr/bin/netctltray
+}
diff --git a/netctltray.install b/netctltray.install
new file mode 100644
index 00000000000..760e7ae72d8
--- /dev/null
+++ b/netctltray.install
@@ -0,0 +1,7 @@
+post_install() {
+ echo "Post install"
+}
+
+post_remove() {
+ echo "Remove"
+}