add PKGBUILD

This commit is contained in:
2025-10-30 23:24:02 -03:00
parent 0986ac63d4
commit f97b9055a6

26
PKGBUILD Normal file
View File

@@ -0,0 +1,26 @@
# Maintainer: robogg133 <see git.opentty.xyz/robogg133>
pkgname=utctimerightnow
pkgver=1.0.0
pkgrel=1
pkgdesc="Print real time UTC time"
arch=('x86_64')
url="https://git.opentty.xyz/robogg133/utctimerightnow"
license=('MIT')
makedepends=('go' 'git')
sha256sums=('SKIP')
source=("git+https://git.opentty.xyz/robogg133/$pkgname.git")
build() {
export GOPATH="$srcdir"/gopath
cd "$srcdir/$pkgname"
go build -trimpath -ldflags="-s -w" -o utctimerightnow main.go
}
package() {
cd "$srcdir/$pkgname"
install -Dm755 utctimerightnow "$pkgdir/usr/bin/$pkgname"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}