summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authororhun2020-08-22 19:16:52 +0300
committerorhun2020-08-22 19:16:52 +0300
commitcb837c0d2952aa23be460540106f94878bed0382 (patch)
treeb4bb6c47825b0e2a77f5cbe09c82a3f6376851bd
downloadaur-cb837c0d2952aa23be460540106f94878bed0382.tar.gz
Initial upload: passwall-desktop-git 0.1.3.r67.gca5397b-1
Add passwall-desktop-git
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD42
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c08e8a5c2a2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = passwall-desktop-git
+ pkgdesc = Desktop client of the PassWall platform (git)
+ pkgver = 0.1.3.r67.gca5397b
+ pkgrel = 1
+ url = https://github.com/passwall/passwall-desktop
+ arch = x86_64
+ license = unknown
+ makedepends = yarn
+ depends = git
+ conflicts = passwall-desktop
+ source = git+https://github.com/passwall/passwall-desktop
+ sha256sums = SKIP
+
+pkgname = passwall-desktop-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..852b8dd33d0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: orhun <orhunparmaksiz@gmail.com>
+# https://github.com/orhun/pkgbuilds
+
+pkgname=passwall-desktop-git
+_pkgname=passwall
+pkgdesc="Desktop client of the PassWall platform (git)"
+pkgver=0.1.3.r67.gca5397b
+pkgrel=1
+arch=('x86_64')
+url="https://github.com/passwall/passwall-desktop"
+license=('unknown')
+conflicts=("${pkgname%-git}")
+depends=('git')
+makedepends=('yarn')
+source=("git+$url")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ yarn && yarn run build
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+
+ # Install resources and binary
+ install -dm 755 "$pkgdir/usr/share/${pkgname%-git}"
+ cp -r build/linux-unpacked/* "$pkgdir/usr/share/${pkgname%-git}"
+ install -dm 755 "$pkgdir/usr/local/bin"
+ ln -s "$pkgdir/usr/share/${pkgname%-git}/$_pkgname" "$pkgdir/usr/local/bin/$_pkgname"
+
+ # Install pixmaps and fonts
+ install -dm 755 "$pkgdir/usr/share/pixmaps"
+ install -Dm 644 static/img/logo.png "$pkgdir/usr/share/pixmaps/$_pkgname.png"
+ install -Dm 644 static/img/error-notify.png "$pkgdir/usr/share/pixmaps/error-notify.png"
+ cp -r static/fonts/ "$pkgdir/usr/share/"
+}