summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD32
3 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c6c1ebe55f0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = zram-swap-git
+ pkgdesc = A simple zram swap service for modern systemd Linux
+ pkgver = 02.r1.g867269f
+ pkgrel = 1
+ url = https://github.com/foundObjects/zram-swap.git
+ arch = any
+ license = MIT
+ depends = systemd
+ depends = bash
+ backup = etc/default/zram-swap
+ source = git+https://github.com/foundObjects/zram-swap.git
+ sha512sums = SKIP
+
+pkgname = zram-swap-git
+ provides = zram-swap
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..dad3a831871
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+zram-swap/
+src/
+pkg/
+*.pkg.tar.*
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..987f7785336
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Arglebargle < arglebargle DASH aur AT arglebargle DOT dev >
+pkgname=zram-swap-git
+_pkgname=zram-swap
+pkgver=02.r1.g867269f
+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' 'bash')
+backup=('etc/default/zram-swap')
+source=('git+https://github.com/foundObjects/zram-swap.git')
+sha512sums=('SKIP')
+
+pkgver() {
+ cd ${_pkgname}
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd ${_pkgname}
+ sed -i 's/local\/s//g' ./service/zram-swap.service
+}
+
+package() {
+ provides=("$_pkgname")
+ cd ${_pkgname}
+ install -Dm0644 "${srcdir}/${_pkgname}/service/zram-swap.service" "${pkgdir}/usr/lib/systemd/system/zram-swap.service"
+ install -Dm0644 "${srcdir}/${_pkgname}/service/zram-swap.config" "${pkgdir}/etc/default/zram-swap"
+ install -Dm0755 "${srcdir}/${_pkgname}/zram-swap.sh" "${pkgdir}/usr/bin/zram-swap.sh"
+}
+