blob: 0c2273aa76b7fc6d768b1584a5566a530778c3a1 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Maintainer: Klaus Alexander Seistrup <klaus@seistrup.dk>
# -*- mode: sh -*-
pkgname=fuzzynote
pkgver=0.20.0
pkgrel=4
_pkgdate=1624743041
pkgdesc='Terminal-based, CRDT-backed, local-first, collaborative note-taking'
arch=('x86_64')
url='https://github.com/Sambigeara/fuzzynote'
license=('AGPL3')
makedepends=('go')
provides=('fuzzynote')
conflicts=('fuzzynote')
source=(
"$pkgname-$pkgver.tar.gz::https://github.com/Sambigeara/$pkgname/archive/refs/tags/v$pkgver.tar.gz"
)
md5sums=(
'3372c0714f6e8b4dcf48cc1451b4a3f2'
)
sha1sums=(
'38f6cee02d01907d9de122f88542d599e4cb70ef'
)
sha256sums=(
'80692fc267590cbc163b1d53d9bf0d4b082a30ab3601d23f2acf2a0f42ae9067'
)
sha512sums=(
'eb29be8428a6ef2265057753766604064f7395eeb94a1db19066e691e14d7a0d28d8851e08f2e25accd70c784c30746ee6b7ead03822b13415c938b254fdf48f'
)
b2sums=(
'50171ac91294a8563a9e121c64c9cbc41f0a7150fca9251f0cfd8b36e50e2379da9952aca5866ec1cda8b6423c07ce4194d34ac250e47ca1f97ac4a4c0c2c61a'
)
build() {
cd "$pkgname-$pkgver" || exit 1
# https://wiki.archlinux.org/title/Go_package_guidelines
export CGO_CPPFLAGS="$CPPFLAGS"
export CGO_CFLAGS="$CFLAGS"
export CGO_CXXFLAGS="$CXXFLAGS"
export CGO_LDFLAGS="$LDFLAGS"
go build \
-buildmode=pie \
-trimpath \
-ldflags="-linkmode=external -X main.version=$pkgver -X main.date=$_pkgdate" \
-mod=readonly \
-modcacherw \
-o bin/fzn ./cmd/term
}
package() {
cd "$pkgname-$pkgver" || exit 1
install -Dm0755 bin/fzn "$pkgdir/usr/bin/fzn"
install -Dm0644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}
# eof
|