summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoryifeiw2018-03-23 20:16:52 +0800
committeryifeiw2018-03-23 20:23:32 +0800
commite3c9332fded845817b3e3b15ccdf576a964f683c (patch)
tree9b1d79cac9fad8dc478858aad8bea7c88e1d1d57
downloadaur-e3c9332fded845817b3e3b15ccdf576a964f683c.tar.gz
3.0.0.r2.g1bd3494
-rw-r--r--.SRCINFO20
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD38
3 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..426f3011f47
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = shadowsocks-qt5-git
+ pkgdesc = A fast, reliable and cross-platform GUI fronted for Shadowsocks.
+ pkgver = 3.0.0.r2.g1bd3494
+ pkgrel = 1
+ url = https://github.com/shadowsocks/shadowsocks-qt5
+ arch = x86_64
+ arch = i686
+ license = GPL
+ makedepends = cmake
+ makedepends = git
+ depends = qrencode
+ depends = libqtshadowsocks
+ depends = zbar
+ provides = shadowsocks-qt5
+ conflicts = shadowsocks-qt5
+ source = git+https://github.com/shadowsocks/shadowsocks-qt5
+ sha512sums = SKIP
+
+pkgname = shadowsocks-qt5-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..f71c635dafd
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!.gitignore
+!PKGBUILD
+!.SRCINFO
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6499f080abc
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Yifei Wang <chrisww@live.com>
+
+pkgname=shadowsocks-qt5-git
+pkgver=3.0.0.r2.g1bd3494
+pkgrel=1
+pkgdesc="A fast, reliable and cross-platform GUI fronted for Shadowsocks."
+arch=('x86_64' 'i686')
+url="https://github.com/shadowsocks/shadowsocks-qt5"
+license=('GPL')
+depends=('qrencode' 'libqtshadowsocks' 'zbar')
+makedepends=('cmake' 'git')
+provides=('shadowsocks-qt5')
+conflicts=('shadowsocks-qt5')
+source=('git+https://github.com/shadowsocks/shadowsocks-qt5')
+sha512sums=('SKIP')
+
+pkgver() {
+ cd shadowsocks-qt5
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd shadowsocks-qt5
+
+ # Disable appindicator (was needed for Qt < 5.4.2)
+ sed -i '/APPINDICATOR/d' CMakeLists.txt
+}
+
+build() {
+ cd shadowsocks-qt5
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
+ make
+}
+
+package() {
+ cd shadowsocks-qt5
+ make DESTDIR="$pkgdir" install
+}