summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0353e036f55e6cf8049e8d93e5e61a93c7662cc5 (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
# Maintainer: bar0metr <admin@os-admin.ru>
pkgname=squid-ecap-gzip
pkgver=1.5.4.0
pkgrel=1
pkgdesc='This Software is an eCAP adapter for HTTP compression with GZIP and DEFLATE. This is fully re-worked on C++11,improved and bugfixed production version, based on Constantin Rack`s https://github.com/c-rack/squid-ecap-gzip adapter'
arch=('x86_64')
url='https://github.com/yvoinov/squid-ecap-gzip'
makedepends=('git')
provides=("$pkgname")
conflicts=("$pkgname")
source=("$pkgname::git+$url.git")
depends=('libecap' 'squid4' 'zlib')
license=('BSD 3-Clause License')

sha256sums=('SKIP')

build() {
  cd "$srcdir/squid-ecap-gzip"
  chmod +x ./configure
  ./configure 'CXXFLAGS=-O2 -m64 -mtune=native -pipe' 'LDFLAGS=-L/usr/lib'
  make -j$(nproc)
}

package() {
  cd "$srcdir"
  make -C "squid-ecap-gzip" DESTDIR="$pkgdir" install-strip
  msg "INFO:"
  msg2 "Go to page https://github.com/yvoinov/squid-ecap-gzip for documentation and support."
  msg2 "Copyright (c) 2016-2018, Joe Lawand <chip_pop@hotmail.com>,"
  msg2 "Yuri Voinov <yvoinov@gmail.com>" 
}