summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVimsucks2018-04-03 22:32:17 +0800
committerVimsucks2018-04-03 22:32:17 +0800
commitaa0fa51d19f48a7e8cd5f46e05356a17b2e28c6d (patch)
tree6c2e7839b0bfbadae2f95db9c0d12d07472f7711
parent364b60e6a8fff98258009206ec5c981a01491fcc (diff)
downloadaur-aa0fa51d19f48a7e8cd5f46e05356a17b2e28c6d.tar.gz
add arm and i686 support
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD30
2 files changed, 31 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 59b923daa5f..7da8995a117 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,21 +1,27 @@
pkgbase = frp
pkgdesc = A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.
pkgver = 0.16.1
- pkgrel = 3
+ pkgrel = 4
url = https://github.com/fatedier/frp
install = frp.install
arch = x86_64
+ arch = i686
+ arch = arm
license = Apache
source = frps.service
source = frpc.service
source = frps@.service
source = frpc@.service
- source = https://github.com/fatedier/frp/releases/download/v0.16.1/frp_0.16.1_linux_amd64.tar.gz
md5sums = 6f9c6681357f3f984983457151d7f0c5
md5sums = e3bfa7c428433fa6cbb5aa64515d8899
md5sums = 50364b050ca08f47b7afe305f528eaa2
md5sums = 7aaf36865c656232b441e7bbaf2993dd
- md5sums = 2715de9dac4a2da4817de9dd285ca600
+ source_x86_64 = https://github.com/fatedier/frp/releases/download/v0.16.1/frp_0.16.1_linux_amd64.tar.gz
+ md5sums_x86_64 = 2715de9dac4a2da4817de9dd285ca600
+ source_i686 = https://github.com/fatedier/frp/releases/download/v0.16.1/frp_0.16.1_linux_386.tar.gz
+ md5sums_i686 = 1297a23e3344b64820dd3699a2d0f187
+ source_arm = https://github.com/fatedier/frp/releases/download/v0.16.1/frp_0.16.1_linux_arm.tar.gz
+ md5sums_arm = e3dc3a7b23ec514e9dd4e424aff5264f
pkgname = frp
diff --git a/PKGBUILD b/PKGBUILD
index 9aa48c573b4..565390907b8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,21 +2,35 @@
pkgname=frp
pkgver=0.16.1
-pkgrel=3
+pkgrel=4
pkgdesc="A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet."
license=('Apache')
url="https://github.com/fatedier/frp"
-source=(frps.service frpc.service frps@.service frpc@.service "https://github.com/fatedier/frp/releases/download/v${pkgver}/frp_${pkgver}_linux_amd64.tar.gz")
-arch=('x86_64')
+arch=('x86_64' 'i686' 'arm')
+source=(frps.service frpc.service frps@.service frpc@.service)
+source_x86_64=("https://github.com/fatedier/frp/releases/download/v${pkgver}/frp_${pkgver}_linux_amd64.tar.gz")
+source_i686=("https://github.com/fatedier/frp/releases/download/v${pkgver}/frp_${pkgver}_linux_386.tar.gz")
+source_arm=("https://github.com/fatedier/frp/releases/download/v${pkgver}/frp_${pkgver}_linux_arm.tar.gz")
md5sums=('6f9c6681357f3f984983457151d7f0c5'
- 'e3bfa7c428433fa6cbb5aa64515d8899'
- '50364b050ca08f47b7afe305f528eaa2'
- '7aaf36865c656232b441e7bbaf2993dd'
- '2715de9dac4a2da4817de9dd285ca600')
+'e3bfa7c428433fa6cbb5aa64515d8899'
+'50364b050ca08f47b7afe305f528eaa2'
+'7aaf36865c656232b441e7bbaf2993dd')
+md5sums_x86_64=('2715de9dac4a2da4817de9dd285ca600')
+md5sums_i686=('1297a23e3344b64820dd3699a2d0f187')
+md5sums_arm=('e3dc3a7b23ec514e9dd4e424aff5264f')
install=$pkgname.install
package() {
- frpdir=$srcdir/frp_${pkgver}_linux_amd64
+ case $CARCH in
+ x86_64)ARCH=amd64
+ ;;
+ i686)ARCH=386
+ ;;
+ arm)ARCH=arm
+ ;;
+ esac
+ frpdir=$srcdir/frp_${pkgver}_linux_${ARCH}
+
mkdir -p $pkgdir/usr/bin
install -m755 $frpdir/frpc $pkgdir/usr/bin/frpc
install -m755 $frpdir/frps $pkgdir/usr/bin/frps