summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAli Molaei2019-09-22 16:32:17 +0330
committerAli Molaei2019-09-22 16:32:17 +0330
commitdfad155068693fa77b271e416abc463eb11e30df (patch)
tree93bdbd8d4dd46f224461b2da9aee25c971b8b4ee /PKGBUILD
downloadaur-obfs4proxy-bin.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..52e39e116e6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Ali Molaei <ali dot molaei at protonmail dot com>
+
+pkgname=obfs4proxy-bin
+pkgver=0.0.11
+pkgrel=1
+pkgdesc='The obfourscator - A Pluggable Transport Proxy Written in Go (This package is built by myself for thoes who live in countries with tor censored that cannot download the source in obfs4proxy package'
+arch=('x86_64')
+url='https://gitweb.torproject.org/pluggable-transports/obfs4.git/'
+license=('BSD')
+conflicts=("${pkgname%-bin}")
+makedepends=('glibc')
+optdepends=('tor: you need tor to use this package')
+source=('https://github.com/molaeiali/obfs4proxy-bin/raw/master/files.tar.xz')
+sha512sums=('d3430109ff9fb6817b0f2f2431e7087a6e33f08256269464966edbcd783ffe0db4b88fceeb88eb9ec055732eb031c1171541a41d8c7b24dba3ab7d70d04111f2')
+
+prepare() {
+ cd "${srcdir}"
+ tar -xvf "${srcdir}/files.tar.xz"
+}
+
+package() {
+ cd "${srcdir}/"
+ install -Dm0755 $srcdir/obfs4proxy "${pkgdir}/usr/bin/obfs4proxy"
+ install -Dm0644 $srcdir/obfs4proxy.1 "${pkgdir}/usr/share/man/man1/obfs4proxy.1"
+ install -Dm0644 $srcdir/ChangeLog "${pkgdir}/usr/share/doc/${pkgname}/ChangeLog"
+ install -Dm0644 $srcdir/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+