jobextra/torsocks/PKGBUILD
2023-08-19 02:38:52 +03:00

71 lines
2 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
_pkgname=torsocks
#pkgname=torsocks-git
pkgname=torsocks
pkgver=2.4.0
pkgrel=03
pkgdesc='Wrapper to safely torify applications'
#url='https://gitweb.torproject.org/torsocks.git/'
url='https://gitlab.torproject.org/tpo/core/torsocks'
conflicts=('torsocks-git')
provides=('torsocks')
depends=('tor')
backup=("etc/tor/$_pkgname.conf")
#source=(https://people.torproject.org/~dgoulet/$_pkgname/$_pkgname-$pkgver.tar.xz{,.asc})
#source=("${url}/-/archive/v$pkgver/torsocks-v$pkgver.tar.gz")
_commit=afe9dea542a8b495dbbbbe5e4b98a33cde06729b # tags/v2.4.0
source=("git+https://git.torproject.org/$_pkgname.git#commit=$_commit") #branch=master")
install=$pkgname.install
#pkgver() {
# cd $_pkgname
# git describe |sed 's/^v//;s/-/./g'
#}
prepare() {
cd $_pkgname
./autogen.sh
}
build() {
# cd $pkgname-v$pkgver
cd $_pkgname
# autoreconf -vfi
./configure \
--prefix=/usr \
--sysconfdir=/etc
make
}
check() {
cd $_pkgname
make check
}
package() {
# cd $pkgname-v$pkgver
cd $_pkgname
make DESTDIR="$pkgdir" install
install -Dm644 extras/torsocks-bash_completion "$pkgdir/usr/share/bash-completion/completions/torsocks"
install -Dm644 extras/torsocks-zsh_completion "$pkgdir/usr/share/zsh/site-functions/_torsocks"
install -Dm644 gpl-2.0.txt "$pkgdir/usr/share/licenses/torsocks/LICENSE"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('GPL2')
validpgpkeys=('B74417EDDF22AC9F9E90F49142E86A2A11F48D36')
#sha256sums=(c01b471d89eda9f3c8dcb85a448e8066692d0707f9ff8b2ac7e665a602291b87) # torsocks-v2.4.0.tar.gz
sha256sums=(SKIP)
## 02d9db673c6c1d68badb29fcc6840b84c9cb0400c265e76efdcfbc21eebe1123 torsocks-2.4.0-03-x86_64.pkg.tar.lz