mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 20:57:16 +08:00
a3b39b032b
- upstream URL: change to gitweb page, there seems no official webpage on torproject.org - add check() function for internal test
31 lines
668 B
Bash
31 lines
668 B
Bash
# Arch contributor: https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/torsocks
|
|
pkgname=torsocks
|
|
pkgver=2.2.0
|
|
pkgrel=1
|
|
pkgdesc='Wrapper to safely torify applications'
|
|
arch=('x86_64')
|
|
url='https://gitweb.torproject.org/torsocks.git/'
|
|
license=('GPL2')
|
|
makedepends=('git')
|
|
backup=("etc/tor/${pkgname}.conf")
|
|
source=("git+https://git.torproject.org/torsocks.git#tag=v$pkgver")
|
|
md5sums=('SKIP')
|
|
|
|
build() {
|
|
cd $pkgname
|
|
./autogen.sh
|
|
./configure --prefix=/usr --sysconfdir=/etc
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname
|
|
make DESTDIR="$pkgdir/" install
|
|
find "$pkgdir/usr/share" -maxdepth 1 -type f -delete
|
|
}
|