blob: 3e9983de185cf95eaf874191e0ffa31540998b83 (
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
33
34
35
36
37
38
39
40
41
|
# Maintainer: Navid Yaghoobi <navidys@fedoraproject.org>
pkgname=prometheus-podman-exporter
pkgver=1.13.3
pkgrel=1
pkgdesc="Prometheus exporter for podman environments exposing containers, pods, images, volumes and networks information."
arch=(x86_64)
url="https://github.com/containers/prometheus-podman-exporter"
license=('APACHE-2.0')
depends=('podman>=5')
makedepends=(
gcc
btrfs-progs
git
go
glibc
gcc-libs
systemd
gpgme
device-mapper
pkgconf
make
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/containers/prometheus-podman-exporter/archive/v${pkgver}.tar.gz")
sha256sums=("da32872e633a77635d3036b6b084684293218fcd4a3ad7c246a347238ac27543")
build() {
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie"
export GOPATH="${srcdir}"
cd "$pkgname-$pkgver"
make binary
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir/usr/bin" install
}
|