blob: b9f6b865d6e081d77c5fffc5c6a6394ed4354c43 (
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
42
43
|
# Maintainer: KokaKiwi <kokakiwi+aur [at] kokakiwi [dot] net>
pkgname=pingu
pkgver=0.0.5
pkgrel=2
pkgdesc='ping command but with pingu'
url='https://github.com/sheepla/pingu'
license=('MIT')
arch=('x86_64' 'aarch64')
depends=('glibc')
makedepends=('go')
source=("$pkgname-$pkgver.tar.gz::https://github.com/sheepla/pingu/archive/refs/tags/v$pkgver.tar.gz"
0001-makepkg-Update-golang.org-x-net.patch)
sha256sums=('ee74f29267ec7ea117a65bdead66e7592a68dccb34fa3d2e195ed341116d613f'
'e0dc86d8b05f86f2d2d0a0aaec6b41d7da3510152f126f25d516f530d7f1c3ab')
b2sums=('63aa1be2deda5b2f07f6fb423a54cc79d045b87618b950b7f5032de38d3b30e5455896fc57186269d2806b0bb6dd22303555feb1f140a88274acf564b6b2c513'
'e73d827c79d481e8720f815df65ee09a581763f1c810d4cd0e5afeb3a8c4379453525bacdfd8dd5072f0d97aa137db4941b91e2aa44a2faa6049cefde24453a3')
prepare() {
cd "pingu-$pkgver"
patch -Np1 -i "$srcdir/0001-makepkg-Update-golang.org-x-net.patch"
}
build() {
cd "pingu-$pkgver"
export CGO_CPPFLAGS="$CPPFLAGS"
export CGO_CFLAGS="$CFLAGS"
export CGO_CXXFLAGS="$CXXFLAGS"
export CGO_LDFLAGS="$LDFLAGS"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw -buildvcs=false"
go build -v -o pingu .
}
package() {
cd "pingu-$pkgver"
install -Dm0755 pingu "$pkgdir/usr/bin/pingu"
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}
|