summaryrefslogtreecommitdiff
path: root/pcr/3proxy/PKGBUILD
blob: 3d0dfb4f06af2d396d4516dec58657c1ed338e8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor (AUR): d0wn
# Contributor: André Silva <emulatorman@hyperbola.info>
# Contributor: Márcio Silva <coadde@hyperbola.info>
# Maintainers: Parabola hackers <dev@lists.parabola.nu>

# parabola changes and rationale:
#  - no changes.

pkgname=3proxy
pkgver=0.8.10
pkgrel=1
pkgdesc="A tiny crossplatform proxy server"
arch=('i686' 'x86_64' 'armv7h')
url="http://www.3proxy.ru/"
license=('BSD3')
depends=()
source=("https://github.com/z3APA3A/3proxy/archive/$pkgver.tar.gz"
)
md5sums=('7394c3373823f15882ad65d8ebcf33b5'
)
_prefix=/usr
_etcdir=/etc/3proxy
package() {
	cd "$srcdir/3proxy-$pkgver"
	cp Makefile.Linux Makefile.Linux~ && sed 's/^\(CFLAGS =\)/\1 -Werror-implicit-function-declaration /' Makefile.Linux~ > Makefile.Linux || return 1
	make='make -f Makefile.Linux INSTALL=/usr/bin/install'
	$make prefix="$_prefix" ETCDIR="$_etcdir"
	$make prefix="$_prefix" install DESTDIR="$pkgdir" ETCDIR="${pkgdir}${_etcdir}"
	( cd ${pkgdir}${_prefix}/bin && mv proxy 3proxy-proxy ) || return 1
	rm -f ${pkgdir}${_etcdir}/counters ${pkgdir}${_etcdir}/passwd ${pkgdir}${_etcdir}/bandlimiters
	install -D -m644 copying ${pkgdir}${_prefix}/share/licenses/$pkgname/copying
	install -D -m644 cfg/3proxy.cfg.sample ${pkgdir}${_etcdir}/3proxy.cfg.sample
	install -D -m644 cfg/counters.sample ${pkgdir}${_etcdir}/counters.sample
}