summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott B2021-08-22 04:49:32 -0700
committerScott B2021-08-22 04:49:32 -0700
commitbd5f474b59abe924eadaaaeb7fbecc6edc39f87f (patch)
treefea2246fee665a5510fa25401977815c0882e834
parent4ddb958cbea93812886c4a6582e0ea746542e9b1 (diff)
downloadaur-bd5f474b59abe924eadaaaeb7fbecc6edc39f87f.tar.gz
added simple 1st run install script
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD5
-rw-r--r--zram-swap.install20
3 files changed, 26 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 48b01f94118..f1d3437cac7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,9 @@
pkgbase = zram-swap-git
pkgdesc = A simple zram swap service for modern systemd Linux
- pkgver = 02.r2.g5758ac0
- pkgrel = 2
+ pkgver = 02.r5.gb80f27a
+ pkgrel = 1
url = https://github.com/foundObjects/zram-swap.git
+ install = zram-swap.install
arch = any
license = MIT
depends = systemd
diff --git a/PKGBUILD b/PKGBUILD
index ecfb9ffabbd..ed58fb16c84 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,14 @@
# Maintainer: Arglebargle < arglebargle DASH aur AT arglebargle DOT dev >
pkgname=zram-swap-git
_pkgname=zram-swap
-pkgver=02.r2.g5758ac0
-pkgrel=2
+pkgver=02.r5.gb80f27a
+pkgrel=1
pkgdesc="A simple zram swap service for modern systemd Linux"
arch=('any')
url="https://github.com/foundObjects/zram-swap.git"
license=('MIT')
depends=('systemd' 'sh' 'grep' 'awk' 'util-linux' 'kmod')
+install="zram-swap.install"
backup=('etc/default/zram-swap')
source=('git+https://github.com/foundObjects/zram-swap.git')
sha512sums=('SKIP')
diff --git a/zram-swap.install b/zram-swap.install
new file mode 100644
index 00000000000..9eac4265e69
--- /dev/null
+++ b/zram-swap.install
@@ -0,0 +1,20 @@
+post_install() {
+ cat << YEET
+
+ Make any desired configuration changes to /etc/default/zram-swap then execute
+
+ $ systemctl daemon-reload
+ $ systemctl enable zram-swap.service
+
+ To enable zram swap immediately run
+
+ $ systemctl start zram-swap.service
+
+ Report any issues to:
+ https://github.com/foundObjects/zram-swap/issues
+
+ This package is forked from:
+ https://github.com/foundObjects/zram-swap
+
+YEET
+}