blob: dfaa5ca6d26f23bf05b48a7b68fc3b5ecc28460f (
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
|
#Maintainer: Alessandro Bernardello <aleberna at erine dot eu>
# shellcheck shell=bash disable=SC2034,SC2154
pkgname=glance
pkgver=0.7.3
pkgrel=2
pkgdesc="A self-hosted dashboard that puts all your feeds in one place"
arch=('x86_64' 'i686' 'armv7h' 'aarch64' 'riscv64' 'ppc64' 'ppc64le' 'mips' 'mips64' 'mips64el' 'mipsel')
url="https://github.com/glanceapp/glance"
license=('AGPL-3.0-only')
depends=("glibc")
makedepends=("go" "git")
source=("git+https://github.com/glanceapp/glance.git#tag=v$pkgver"
"glance.service"
"sysusers.conf"
"tmpfiles.conf"
)
b2sums=('fc231f9789d8562493e7007508c494a5c7d0376a8e66eb27249ea5bbd1128c067c2219844e0db2dd26e081760a5ea2bb3778ef064b8461d3092725c4988d58cf'
'6c9f854855cf366eb47847f90c8ed38c531a71ef329575863cd570c5dc46849e5f34ae6549ec214652c1413debdf512646775fd163e149b5c89e99511644edf2'
'4fc636320adf8b7810bd3b4786a6d30f848f6e183a1e351dc3780ea4d66c72ebb96f4fc6e9ed13277a385cbfdd3c07d5e1ec05dc0b12afc3b69270a3c5b7e971'
'c77dfe04cf5b2f59e919e6dfc5fd85709d5c4bf0f1d83185c15efad2072b6a1389514df5a4ff80920b73690588d373b49e59a36fef2f51fba5bdc06e177dd46e')
build() {
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"
go -C "${srcdir}/glance" build -o glance
}
package() {
install -Dm755 "$srcdir/glance/glance" "$pkgdir/usr/bin/glance"
install -Dm644 glance.service "$pkgdir/usr/lib/systemd/system/glance.service"
install -Dm644 sysusers.conf "$pkgdir/usr/lib/sysusers.d/glance.conf"
install -Dm644 tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/glance.conf"
install -Dm644 "$srcdir/glance/docs/glance.yml" "$pkgdir/etc/glance.yml"
}
|