summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorNaleo2021-02-28 11:35:33 -1000
committerNaleo2021-02-28 11:35:33 -1000
commitd74bc9c71c514ef1b113d6eeecea63c17ffffcba (patch)
tree31cfed63682a298cdc4410cfd450f88f719a589c /PKGBUILD
downloadaur-gswitch-git.tar.gz
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b893578a9fc
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Naleo <naleo@naleo.me>
+_pkgname=gswitch
+pkgname=$_pkgname-git
+pkgver=r40.8534934
+pkgrel=1
+pkgdesc="Script and service to easily switch between eGPU and internal graphics"
+arch=('any')
+url="https://github.com/karli-sjoberg/gswitch"
+license=('BSD 3-Clause License Revised')
+depends=('bash>=4.0')
+makedepends=('git')
+provides=($_pkgname)
+conflicts=($_pkgname)
+source=("${pkgname}::git+https://github.com/karli-sjoberg/gswitch")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ sed -i "s/systemctl/#systemctl/g" "$srcdir/${pkgname}/Makefile"
+}
+package() {
+ cd "$srcdir/${pkgname}"
+ make DESTDIR="$pkgdir/" install
+ install -m644 -Dt "${pkgdir}/usr/share/licenses/${pkgname}" $srcdir/${pkgname}/LICENSE
+}
+