summaryrefslogtreecommitdiff
path: root/age/Pkgfile
blob: 42d7f9033867a2d235ebd9ce2900a046e3d3bed1 (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
# Description:	DESCRIPTION
# URL:		https://age-encryption.org/
# Maintainer:	Shokara Kou, kou at 13f0 dot net
# Depends on:	go

name=age
version=1.0.0
release=1
source=(https://github.com/FiloSottile/age/archive/refs/tags/v$version.tar.gz)

build() {
	cd $name-$version

	mkdir build
	go build \
		-trimpath \
		-buildmode=pie \
		-mod=readonly \
		-modcacherw \
		-o build ./...

	install -Dm755 build/age -t $PKG/usr/bin/
	install -Dm755 build/age-keygen -t $PKG/usr/bin/
	install -Dm644 doc/age.1 -t $PKG/usr/share/man/man1/
	install -Dm644 doc/age-keygen.1 -t $PKG/usr/share/man/man1/
}