diff options
-rw-r--r-- | main/tsocks/APKBUILD | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/main/tsocks/APKBUILD b/main/tsocks/APKBUILD index da9db19b7e..1d686e47d0 100644 --- a/main/tsocks/APKBUILD +++ b/main/tsocks/APKBUILD @@ -1,8 +1,8 @@ # Contributor: ScrumpyJack <scrumpyjack@st.ilet.to> +# Contributor: 7heo <7heo@mail.com> # Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to> pkgname=tsocks pkgver=1.8_beta5 -_ver=${pkgver/_beta/beta} pkgrel=0 pkgdesc="A transparent SOCKS proxying library" url="http://tsocks.sourceforge.net/" @@ -13,22 +13,12 @@ depends_dev="" makedepends="" install="" subpackages="$pkgname-doc" -source="http://downloads.sourceforge.net/${pkgname}/${pkgname}-${_ver}.tar.gz +source="http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver/_beta/beta}.tar.gz configure.patch" - -_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 \ @@ -41,7 +31,7 @@ build() { } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="${pkgdir}" install || return 1 } |