summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin2019-01-18 17:02:46 -0500
committerKevin2019-01-18 17:02:46 -0500
commit6e12371acc4686943d270d2e315ab0dbfcb31ea0 (patch)
tree3ea0701abdf31de89a80ba4f5695c67a71041e61
downloadaur-6e12371acc4686943d270d2e315ab0dbfcb31ea0.tar.gz
first commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD27
-rw-r--r--nvman.install13
3 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..842601b004b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = nvman
+ pkgdesc = nvman - NVIDIA Manager for Optimus
+ pkgver = 1.0
+ pkgrel = 1
+ install = nvman.install
+ arch = any
+ license = GPL
+ depends = bumblebee
+ depends = primus
+ depends = optimus-manager
+ source = https://github.com/lans98/nvman/archive/1.0.tar.gz
+ md5sums = ced7000e6610a98c6996debdab4a9dd8
+
+pkgname = nvman
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4e845f56e74
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Kevin Del Castillo R. <lans9831@gmail.com>
+
+pkgname=nvman
+pkgver=1.0
+pkgrel=1
+pkgdesc="nvman - NVIDIA Manager for Optimus"
+arch=('any')
+license=('GPL')
+depends=('bumblebee' 'primus' 'optimus-manager')
+optdepends=()
+conflicts=()
+options=()
+install=$pkgname.install
+source=("https://github.com/lans98/$pkgname/archive/$pkgver.tar.gz")
+md5sums=(ced7000e6610a98c6996debdab4a9dd8)
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ mkdir -p "$pkgdir/usr/bin/"
+ mkdir -p "$pkgdir/usr/lib/systemd/system/"
+ mkdir -p "$pkgdir/etc/nvman/"
+
+ install $pkgname "$pkgdir/usr/bin/"
+ cp "$pkgname.service" "$pkgdir/usr/lib/systemd/system/"
+ cp config "$pkgdir/etc/nvman/"
+}
diff --git a/nvman.install b/nvman.install
new file mode 100644
index 00000000000..d76537aaac0
--- /dev/null
+++ b/nvman.install
@@ -0,0 +1,13 @@
+post_install() {
+ echo "Setting default service to 'optimus' (if possible)"
+ nvman default optimus
+
+ echo -n "IMPORTANT! Run 'nvman default bumblebee' or 'nvman default optimus' to set "
+ echo "one default service! (extremely needed)"
+
+ echo "Enabling nvman.service (if possible)"
+ systemctl enable nvman.service
+
+ echo -n "IMPORTANT! Enable 'nvman.service' with 'systemctl enable nvman.service' "
+ echo "(if it wasn't enabled yet)"
+}