[arch-commits] Commit in irccat (repos trunk trunk/PKGBUILD trunk/irccat.service)

Jelle van der Waa jelle at archlinux.org
Fri Dec 13 09:01:04 UTC 2019


    Date: Friday, December 13, 2019 @ 09:01:03
  Author: jelle
Revision: 371345

irccat

Added:
  irccat/repos/
  irccat/trunk/
  irccat/trunk/PKGBUILD
  irccat/trunk/irccat.service

----------------+
 PKGBUILD       |   27 +++++++++++++++++++++++++++
 irccat.service |   25 +++++++++++++++++++++++++
 2 files changed, 52 insertions(+)

Added: trunk/PKGBUILD
===================================================================
--- trunk/PKGBUILD	                        (rev 0)
+++ trunk/PKGBUILD	2019-12-13 09:01:03 UTC (rev 371345)
@@ -0,0 +1,27 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+pkgname=irccat
+pkgver=0.4.5
+pkgrel=1
+pkgdesc='cat to IRC'
+arch=('x86_64')
+url="https://github.com/irccloud/irccat"
+license=('GPL')
+makedepends=('go-pie')
+source=("$url/archive/v$pkgver.tar.gz" irccat.service)
+sha256sums=('2457519704d6c22ac1a4aeca123bd44cdd6a6b47bd2e756c558d8c1b115fec0a'
+            '379eb5beb3b5df39af8257244a1f4c01e2f6d9020ead34334ce9c6664d05c6a9')
+
+build() {
+  cd $pkgname-$pkgver
+  go build \
+    -trimpath \
+    -ldflags "-extldflags $LDFLAGS" \
+    -o $pkgname .
+}
+
+package() {
+  cd $pkgname-$pkgver
+  install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
+  install -Dm644 $srcdir/irccat.service "$pkgdir"/usr/lib/systemd/system/irccat.service
+}

Added: trunk/irccat.service
===================================================================
--- trunk/irccat.service	                        (rev 0)
+++ trunk/irccat.service	2019-12-13 09:01:03 UTC (rev 371345)
@@ -0,0 +1,25 @@
+[Unit]
+Description=irccat service
+Requires=network-online.target
+After=network-online.target
+
+[Service]
+Restart=on-failure
+ExecStart=/usr/bin/irccat
+ExecReload=/bin/kill -HUP $MAINPID
+
+DynamicUser=true
+NoNewPrivileges=true
+
+PrivateDevices=true
+ProtectHome=true
+ProtectSystem=strict
+
+ProtectHostname=true
+ProtectControlGroups=true
+ProtectKernelModules=true
+
+MemoryDenyWriteExecute=true
+
+[Install]
+WantedBy=multi-user.target


More information about the arch-commits mailing list