core/torsocks/PKGBUILD
Chaoting Liu a3b39b032b torsocks: update to 2.2.0
- upstream URL: change to gitweb page, there seems no official webpage on torproject.org
- add check() function for internal test
2016-11-11 08:43:15 +00:00

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
}