summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore7
-rw-r--r--PKGBUILD29
3 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..33b09460589
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = obfs4proxy-bin
+ 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
+ pkgver = 0.0.11
+ pkgrel = 1
+ url = https://gitweb.torproject.org/pluggable-transports/obfs4.git/
+ arch = x86_64
+ license = BSD
+ makedepends = glibc
+ optdepends = tor: you need tor to use this package
+ conflicts = obfs4proxy
+ source = https://github.com/molaeiali/obfs4proxy-bin/raw/master/files.tar.xz
+ sha512sums = d3430109ff9fb6817b0f2f2431e7087a6e33f08256269464966edbcd783ffe0db4b88fceeb88eb9ec055732eb031c1171541a41d8c7b24dba3ab7d70d04111f2
+
+pkgname = obfs4proxy-bin
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..f930bce9542
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+/obfs4proxy-bin-*
+/obfs4proxy-org-*
+/src/
+/pkg/
+pkg/
+src/
+files.tar.xz
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"
+}
+
+