[arch-commits] Commit in torsocks/trunk (PKGBUILD)
Daniel Micay
thestinger at nymeria.archlinux.org
Tue May 21 02:12:10 UTC 2013
Date: Tuesday, May 21, 2013 @ 04:12:09
Author: thestinger
Revision: 91307
torsocks: remove useless files
Modified:
torsocks/trunk/PKGBUILD
----------+
PKGBUILD | 30 ++++++------------------------
1 file changed, 6 insertions(+), 24 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-05-21 01:43:10 UTC (rev 91306)
+++ PKGBUILD 2013-05-21 02:12:09 UTC (rev 91307)
@@ -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 @@
makedepends=('git')
options=(!libtool)
backup=("etc/${pkgname}.conf")
+source=("git://git.torproject.org/torsocks.git#tag=1.3")
+md5sums=(SKIP)
-__gitroot=https://git.torproject.org/torsocks
-__gitname=torsocks
-
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
}
More information about the arch-commits
mailing list