summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorasm0dey2020-10-27 09:50:06 +0300
committerasm0dey2020-10-27 09:50:06 +0300
commitd034567b0e4d689c15b6ea353e712762dbc107f2 (patch)
tree639d36cfd3008cc764adae6768866abd1adeab7a /PKGBUILD
parent8258719a1c410f336b371630d4d54a222ce8b883 (diff)
downloadaur-d034567b0e4d689c15b6ea353e712762dbc107f2.tar.gz
upgpkg: 3proxy 0.9.0-2
Changes `package` section to match new build process (also removes whole installation process but copying files, cause it's inappropriate for Arch)
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD6
1 files changed, 3 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index d7a175fb0eb..b58b6d78083 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: asm0dey <pavel.finkelshtein+AUR@gmail.com>
pkgname=3proxy
pkgver=0.9.0
-pkgrel=1
+pkgrel=2
pkgdesc="A tiny crossplatform proxy server"
arch=('any')
url="http://www.3proxy.ru/"
@@ -19,10 +19,10 @@ _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
+ sed -i '137,$d' Makefile.Linux
make='make -f Makefile.Linux INSTALL=/usr/bin/install'
$make prefix="$_prefix" ETCDIR="$_etcdir"
- $make prefix="$_prefix" install DESTDIR="$pkgdir" ETCDIR="${pkgdir}${_etcdir}"
+ $make prefix="$_prefix" install DESTDIR="$pkgdir" ETCDIR="${pkgdir}${_etcdir}" INITDIR="$pkgdir/etc/init.d" RUNBASE="$pkgdir/var/run" LOGBASE="$pkgdir/var/log"
( 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