crux-ports

My CRUX Linux ports
Log | Files | Refs | README

Pkgfile (591B)


      1 # Description:	DESCRIPTION
      2 # URL:		https://age-encryption.org/
      3 # Maintainer:	Shokara Kou, kou at 13f0 dot net
      4 # Depends on:	go
      5 
      6 name=age
      7 version=1.0.0
      8 release=1
      9 source=(https://github.com/FiloSottile/age/archive/refs/tags/v$version.tar.gz)
     10 
     11 build() {
     12 	cd $name-$version
     13 
     14 	mkdir build
     15 	go build \
     16 		-trimpath \
     17 		-buildmode=pie \
     18 		-mod=readonly \
     19 		-modcacherw \
     20 		-o build ./...
     21 
     22 	install -Dm755 build/age -t $PKG/usr/bin/
     23 	install -Dm755 build/age-keygen -t $PKG/usr/bin/
     24 	install -Dm644 doc/age.1 -t $PKG/usr/share/man/man1/
     25 	install -Dm644 doc/age-keygen.1 -t $PKG/usr/share/man/man1/
     26 }