From f97b9055a688a494bb2379a468f28c844fd025ca Mon Sep 17 00:00:00 2001 From: robogg133 Date: Thu, 30 Oct 2025 23:24:02 -0300 Subject: [PATCH] add PKGBUILD --- PKGBUILD | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..a6d892d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: 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" +} \ No newline at end of file