Package Details: 3proxy-standalone 0.9.4-1

Git Clone URL: https://aur.archlinux.org/3proxy-standalone.git (read-only, click to copy)
Package Base: 3proxy-standalone
Description: Standalone HTTP/SOCKS proxy binaries from 3proxy proxy server
Upstream URL: https://github.com/z3APA3A/3proxy
Licenses: GPL
Submitter: s3rj1k
Maintainer: None
Last Packager: s3rj1k
Votes: 0
Popularity: 0.000000
First Submitted: 2023-11-30 21:48 (UTC)
Last Updated: 2023-11-30 21:48 (UTC)

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

3EiedD commented on 2025-10-14 11:18 (UTC)

Please update this package

_pkgname=3proxy
pkgname=${_pkgname}-standalone
pkgver=0.9.5
pkgrel=1
pkgdesc="Standalone HTTP/SOCKS proxy binaries from 3proxy proxy server"
arch=('x86_64')
url="https://github.com/z3APA3A/3proxy"
license=('GPL')
depends=('glibc')
makedepends=('gcc' 'make')
source=("https://github.com/z3APA3A/${_pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('SKIP')

prepare() {
    cd "${srcdir}/${_pkgname}-${pkgver}"

    # O2 and march should be dound in makepkg.conf.
    sed --follow-symlinks -i.bak -e 's| -O2||g;s|CFLAGS = -g|CFLAGS = -Wno-incompatible-pointer-types|;s|CC = gcc|CC ?= gcc|;s|LN = gcc|LN ?= gcc|' Makefile.Linux
}

build() {
    cd "${srcdir}/${_pkgname}-${pkgver}"

    make prefix="/usr" \
         DESTDIR="${pkgdir}" \
    -f Makefile.Linux
}

package() {
    cd "${srcdir}/${_pkgname}-${pkgver}"

    make prefix="/usr" install \
         DESTDIR="${pkgdir}" \
    -f Makefile.Linux

    rm -rf "${pkgdir}/etc" \
           "${pkgdir}/var" \
           "${pkgdir}/usr/lib" \
           "${pkgdir}/usr/local" \
           "${pkgdir}/usr/share"

    find "${pkgdir}/usr/bin" \
        -maxdepth 1 \
        -type f \
      ! -name "proxy" \
      ! -name "socks" \
        -delete;

    ls -1 "${pkgdir}/usr/bin" | \
        xargs -I{} mv "${pkgdir}/usr/bin/{}" "${pkgdir}/usr/bin/${_pkgname}_{}"

    install -D -m644 copying "${pkgdir}${_prefix}/share/licenses/$pkgname/copying"
}