summaryrefslogtreecommitdiff
path: root/opt/torsocks/MAKEPKG
diff options
context:
space:
mode:
Diffstat (limited to 'opt/torsocks/MAKEPKG')
-rw-r--r--opt/torsocks/MAKEPKG37
1 files changed, 37 insertions, 0 deletions
diff --git a/opt/torsocks/MAKEPKG b/opt/torsocks/MAKEPKG
new file mode 100644
index 0000000..e5ba86a
--- /dev/null
+++ b/opt/torsocks/MAKEPKG
@@ -0,0 +1,37 @@
+#!/bin/mkpkg
+# description: Use most applications safely with Tor via LD_PRELOAD
+# url: https://gitlab.torproject.org/tpo/core/torsocks
+name=torsocks
+version=2.5.0
+release=1
+depends=()
+makedeps=()
+source=(https://gitlab.torproject.org/tpo/core/torsocks/-/archive/v$version/torsocks-v$version.tar.gz
+ implicit-function-decl.patch
+ torsocks-2.4.0-configure.patch)
+sha256sums=(
+ "0fc8e18f2dc2e12f1129054f6d5acc7ecc3f0345bb57ed653fc8c6674e6ecc7e"
+ "4b6a06736102dd6744996b885df5cbdae6279b78a4502fe8eba61c4feeae6986"
+ "69b049ede422d4cb7c6277b3303b926ac7c1fc37bd5f96ae993c0fc5e4d66e5c"
+)
+build() {
+ cd torsocks-v$version
+ patch -p1 < ../implicit-function-decl.patch
+ patch -p1 < ../torsocks-2.4.0-configure.patch
+ autoreconf -fi
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --disable-static
+ make
+ make DESTDIR=$PKG install
+ rm -rf $PKG/usr/share/doc
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+
+# vim: filetype=sh
+