aboutsummaryrefslogtreecommitdiffstats
path: root/community/torsocks/APKBUILD
diff options
context:
space:
mode:
authortmpfile <tmpfile@users.noreply.github.com>2017-05-13 13:43:40 -0300
committerShiz <hi@shiz.me>2017-05-14 03:34:33 +0200
commit3255f72f7a05504bc6344b07e0a282864eefc288 (patch)
tree82e6426d1ec8866106511cb90e2466b1b25f3def /community/torsocks/APKBUILD
parent0f7769ab6247acf35102d621296ed2527ed3cc5f (diff)
downloadaports-3255f72f7a05504bc6344b07e0a282864eefc288.tar.bz2
aports-3255f72f7a05504bc6344b07e0a282864eefc288.tar.xz
community/torsocks: upgrade to 2.2.0 and modernize
Diffstat (limited to 'community/torsocks/APKBUILD')
-rw-r--r--community/torsocks/APKBUILD37
1 files changed, 10 insertions, 27 deletions
diff --git a/community/torsocks/APKBUILD b/community/torsocks/APKBUILD
index e8c12601cd..a9ff21d1b1 100644
--- a/community/torsocks/APKBUILD
+++ b/community/torsocks/APKBUILD
@@ -1,50 +1,33 @@
# Maintainer: Christian Kampka <christian@kampka.net>
pkgname=torsocks
-pkgver=2.1.0
+pkgver=2.2.0
pkgrel=0
pkgdesc="Wrapper to safely torify applications"
url="https://gitweb.torproject.org/torsocks.git"
arch="all"
license="GPLv2"
depends="tor"
-depends_dev=""
makedepends="$depends_dev autoconf automake libtool"
subpackages="$pkgname-doc"
-source="https://people.torproject.org/~dgoulet/${pkgname}/${pkgname}-${pkgver}.tar.bz2
- musl-fix.patch
-"
+source="https://people.torproject.org/~dgoulet/${pkgname}/${pkgname}-${pkgver}.tar.xz"
-_builddir="${srcdir}/${pkgname}-${pkgver}"
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="${srcdir}/${pkgname}-${pkgver}"
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --localstatedir=/var \
- || return 1
- make || return 1
+ --localstatedir=/var
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
-md5sums="cced40ded9a0c7335050b778677fbd60 torsocks-2.1.0.tar.bz2
-e51d92eed27488e66e348fa3a1c0e11c musl-fix.patch"
-sha256sums="3c3831cb751ff477d97fb826c79cb2cfedc514e5eb89a3b10f341fb3abdf87db torsocks-2.1.0.tar.bz2
-e2298a13a5131d53c0bf878501a980880faff8b378ea250c9935522477e66b31 musl-fix.patch"
-sha512sums="bd273ce124abb288aea1d01eac773074c5e5bb7a363a7cb9957aac24ebcfdc647475dc9d90d5b189ac9537a84e3646e3cc50fa5a961c22fce38df93707e9b6a5 torsocks-2.1.0.tar.bz2
-df5c9d380d505aa42bd150614b48eb55e07a0b3af676886477153923a594c7cc475e467d64d2bd7780201f0c0f6bf9894cdbd7b3b15898c5cde8ba9166f6db3f musl-fix.patch"
+
+sha512sums="89eb1263bfb0079ca5cb7fcc3a6fa1ecde1327df9ea98de48babfff1f8947b1e9db8407ead747fef0190671e7fff502025dcfcd9b6cba97abbaf25b5a575c62a torsocks-2.2.0.tar.xz"