diff options
author | root <root@rshg054.dnsready.net> | 2013-05-22 00:46:35 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-05-22 00:46:35 -0700 |
commit | bdf2189826c1931878cedc2262f67f6fd3c0ef15 (patch) | |
tree | 36ebbf884af31c36516746e43961ddf1f88fd452 /community/torsocks/PKGBUILD | |
parent | 4a7d2439a50adfa30bed83cc92ee80ec62476a20 (diff) |
Wed May 22 00:46:35 PDT 2013
Diffstat (limited to 'community/torsocks/PKGBUILD')
-rw-r--r-- | community/torsocks/PKGBUILD | 30 |
1 files changed, 6 insertions, 24 deletions
diff --git a/community/torsocks/PKGBUILD b/community/torsocks/PKGBUILD index 6e6d3484f..352a1dce2 100644 --- a/community/torsocks/PKGBUILD +++ b/community/torsocks/PKGBUILD @@ -4,7 +4,7 @@ pkgname=torsocks pkgver=1.3 -pkgrel=3 +pkgrel=4 pkgdesc='Wrapper to safely torify applications' arch=('i686' 'x86_64') url='http://code.google.com/p/torsocks' @@ -13,36 +13,18 @@ depends=('tor') makedepends=('git') options=(!libtool) backup=("etc/${pkgname}.conf") - -__gitroot=https://git.torproject.org/torsocks -__gitname=torsocks +source=("git://git.torproject.org/torsocks.git#tag=1.3") +md5sums=(SKIP) build() { - cd "$srcdir" - msg "Connecting to GIT server...." - - if [[ -d "$__gitname" ]]; then - cd "$__gitname" && git pull origin - msg "The local files are updated." - else - git clone "$__gitroot" "$__gitname" - fi - - msg "GIT checkout done or server timeout" - msg "Starting build..." - - rm -rf "$srcdir/$__gitname-build" - git clone "$srcdir/$__gitname" "$srcdir/$__gitname-build" - cd "$srcdir/$__gitname-build" - - git checkout $pkgver - + cd $pkgname ./autogen.sh ./configure --prefix=/usr --sysconfdir=/etc make } package() { - cd "$srcdir/$__gitname-build" + cd $pkgname make DESTDIR="$pkgdir/" install + find "$pkgdir/usr/share" -maxdepth 1 -type f -delete } |