makedeb


libreddit-bin 0.22.9-1


An alternative private front-end to Reddit

Click here to go back to the commit logs for libreddit-bin.

Commit:


Hash: e5e11bee7efe6dd8c8d70ee4c6886c21a17d7d90

Message: Fixed Service file to work in an lxc Container Signed-off-by: SZanko <szanko@protonmail.com>

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 04a212b..3e786fe 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = libreddit-bin
 	pkgdesc = An alternative private front-end to Reddit
 	pkgver = 0.22.8
-	pkgrel = 3
+	pkgrel = 4
 	url = https://github.com/spikecodes/libreddit
 	arch = x86_64
 	arch = amd64
diff --git a/PKGBUILD b/PKGBUILD
index 15facc1..5985116 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
 _pkgname=libreddit
 pkgname=${_pkgname}-bin
 pkgver=0.22.8
-pkgrel=3
+pkgrel=4
 pkgdesc='An alternative private front-end to Reddit'
 arch=('x86_64' 'amd64')
 url="https://github.com/spikecodes/libreddit"
@@ -25,7 +25,12 @@ conflicts=("${_pkgname}")
 package() {
   sed -i '1s/localhost/0.0.0.0/g' ${_pkgname}.conf
   sed -i '2s/12345/8080/g' ${_pkgname}.conf
+  sed -i '19s/P/#P/g' ${_pkgname}.service
+  sed -i '21s/P/#P/g' ${_pkgname}.service
+  sed -i '22s/P/#P/g' ${_pkgname}.service
+  sed -i '26s/P/#P/g' ${_pkgname}.service
+  sed -i '27s/Protec/#Protec/g' ${_pkgname}.service
   install -Dm644 "${_pkgname}.conf" "$pkgdir/etc/${_pkgname}.conf"
-  install -Dm644 "${_pkgname}.service" "$pkgdir/lib/systemd/user/${_pkgname}.service"
+  install -Dm644 "${_pkgname}.service" "$pkgdir/lib/systemd/system/${_pkgname}.service"
   install -Dm755 "${_pkgname}-${pkgver}" "$pkgdir/usr/bin/${_pkgname}"
 }