# Maintainer: Andrey Novikov pkgname=imgproxy pkgdesc="Fast and secure standalone server for resizing and converting remote images" pkgver=2.3.0 pkgrel=1 arch=('i686' 'x86_64') url="https://github.com/imgproxy/imgproxy" license=('MIT') depends=('vips') makedepends=('go' 'rsync') source=("https://github.com/imgproxy/imgproxy/archive/v${pkgver}.tar.gz") sha256sums=('3637386167c01377f0d10a889093a171cdc35a6bcef72e992fe3bc1f2be0ac04') build() { cd "$pkgname-$pkgver" env CGO_LDFLAGS_ALLOW="-s|-w" go build \ -gcflags "all=-trimpath=${PWD}" \ -asmflags "all=-trimpath=${PWD}" \ -ldflags "-extldflags ${LDFLAGS}" \ . } package() { cd "$pkgname-$pkgver" install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname }