[arch-commits] Commit in blinksocks/repos (3 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 13:19:48 UTC 2020


    Date: Tuesday, July 7, 2020 @ 13:19:48
  Author: felixonmars
Revision: 658418

archrelease: copy trunk to community-staging-any

Added:
  blinksocks/repos/community-staging-any/
  blinksocks/repos/community-staging-any/PKGBUILD
    (from rev 658417, blinksocks/trunk/PKGBUILD)
  blinksocks/repos/community-staging-any/blinksocks at .service
    (from rev 658417, blinksocks/trunk/blinksocks at .service)

---------------------+
 PKGBUILD            |   27 +++++++++++++++++++++++++++
 blinksocks at .service |   10 ++++++++++
 2 files changed, 37 insertions(+)

Copied: blinksocks/repos/community-staging-any/PKGBUILD (from rev 658417, blinksocks/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-07-07 13:19:48 UTC (rev 658418)
@@ -0,0 +1,27 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=blinksocks
+pkgver=3.3.8
+pkgrel=2
+pkgdesc='A framework for building composable proxy protocol stack.'
+arch=('any')
+url='https://github.com/blinksocks/blinksocks'
+license=('Apache')
+depends=('nodejs' 'semver')
+makedepends=('npm')
+source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz
+        blinksocks at .service)
+noextract=($pkgname-$pkgver.tgz)
+sha512sums=('21573253717cca4d997e620754919def8562910c66987fccb112d1f2d72158ceff7857082fcb093df5bf5389973077673f3dbd3c28caea23feb4f9f841918e89'
+            '709153bb95492cf0d6fa070ad8eef16220a97896731f688ec79e03cfddf112b4475fff589490740a8dae33b7bc4c1a331a4baf0d190eaf219f193fbb8128abeb')
+
+package() {
+  npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
+
+  # Why 777? :/
+  chmod -R u=rwX,go=rX "$pkgdir"
+
+  rm -r "$pkgdir"/usr/lib/node_modules/blinksocks/node_modules/{,.bin/}semver
+
+  install -Dm644 "$srcdir/blinksocks at .service" "$pkgdir/usr/lib/systemd/system/blinksocks at .service"
+}

Copied: blinksocks/repos/community-staging-any/blinksocks at .service (from rev 658417, blinksocks/trunk/blinksocks at .service)
===================================================================
--- community-staging-any/blinksocks at .service	                        (rev 0)
+++ community-staging-any/blinksocks at .service	2020-07-07 13:19:48 UTC (rev 658418)
@@ -0,0 +1,10 @@
+[Unit]
+Description=Blinksocks Service
+After=network-online.target
+
+[Service]
+ExecStart=/usr/bin/blinksocks /etc/blinksocks/%i.json
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
\ No newline at end of file


More information about the arch-commits mailing list