blob: c85ffceac86d62228214191ba4ca2683ca3bf58e (
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
|
# Maintainer: Julien Nicoulaud <julien dot nicoulaud at gmail dot com>
pkgname=sampler
pkgver=1.1.0
pkgrel=1
pkgdesc='A tool for shell commands execution, visualization and alerting. Configured with a simple YAML file.'
arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
url='https://sampler.dev'
license=('GPL3')
makedepends=('git' 'go-pie' 'alsa-lib')
conflicts=("${pkgname}-git")
source=("https://github.com/sqshq/sampler/archive/v${pkgver}.tar.gz")
sha256sums=('8b60bc5c0f94ddd4291abc2b89c1792da424fa590733932871f7b5e07e7587f9')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
GOFLAGS="-gcflags=all=-trimpath=${PWD} -asmflags=all=-trimpath=${PWD} -ldflags=-extldflags=-zrelro -ldflags=-extldflags=-znow" go build
}
check() {
cd "${srcdir}/${pkgname}-${pkgver}"
go test -v ./...
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}
|