summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4f607b7c0c29d440be207862c92cc5db601c92f2 (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
# Maintainer: Julien Nicoulaud <julien dot nicoulaud at gmail dot com>

pkgname=cuppa
pkgver=1.1.0
pkgrel=1
pkgdesc="Comprehensive Upstream Provider Polling Assistant."
arch=('i686' 'x86_64')
url="https://github.com/DataDrake/cuppa"
license=(MIT)
makedepends=('go-pie' 'make' 'git')
provides=("${pkgname}")
conflicts=("${pkgname}-git")
source=("https://github.com/DataDrake/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('09afd907209ec90b5a566a487ec1c77dea1545b3eb1f8b6a976e61489329f31b')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  export GOFLAGS="-gcflags=all=-trimpath=${PWD} -asmflags=all=-trimpath=${PWD} -ldflags=-extldflags=-zrelro -ldflags=-extldflags=-znow"
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make install DESTDIR="${pkgdir}"
}