blob: 7a6b7d109ffc001c184342d5571b29ef437e19d6 (
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: Adam Perkowski <adas1per@protonmail.com>
# https://github.com/adamperkowski/PKGBUILDs
pkgname=gh-skyline
pkgver=0.0.4
pkgrel=1
pkgdesc='Generate 3D models of your GitHub contribution history'
arch=('i686' 'x86_64' 'armv6h' 'aarch64')
url="https://github.com/github/$pkgname"
license=('MIT')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('14e3e85b40626801303ec45e9c743b848caca097f75ac27ab87fa91ff1a7b676')
depends=('github-cli' 'openssl' 'glibc' 'ttf-mona-sans')
makedepends=('go')
prepare() {
cd "$pkgname-$pkgver"
mkdir -p build
}
build() {
cd "$pkgname-$pkgver"
export CGO_CPPFLAGS="$CPPFLAGS"
export CGO_CFLAGS="$CFLAGS"
export CGO_CXXFLAGS="$CXXFLAGS"
export CGO_LDFLAGS="$LDFLAGS"
export CGO_ENABLED=2
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
go build -o build/$pkgname
}
check() {
cd "$pkgname-$pkgver"
go test
}
package() {
cd "$pkgname-$pkgver"
install -Dm0755 "build/$pkgname" -t "$pkgdir/usr/bin"
install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
install -Dm644 SUPPORT.md -t "$pkgdir/usr/share/doc/$pkgname"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
install -Dm644 NOTICE -t "$pkgdir/usr/share/licenses/$pkgname"
}
|