diff options
author | Dennis Herbrich | 2024-04-04 14:41:56 +0200 |
---|---|---|
committer | Dennis Herbrich | 2024-04-04 14:41:56 +0200 |
commit | 11f37d2c305eee0bdf8e9cae47db4a1c1c9fe746 (patch) | |
tree | bee8ed025c4b57a14f967ac7e1a1c5f2b060791f | |
download | aur-11f37d2c305eee0bdf8e9cae47db4a1c1c9fe746.tar.gz |
add clockify-cli 0.49.0; initial commit
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..dfc1280ac4c7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = clockify-cli + pkgdesc = A simple cli to manage your time entries on Clockify from terminal + pkgver = 0.49.0 + pkgrel = 1 + url = https://clockify-cli.netlify.app + arch = x86_64 + license = Apache-2.0 + makedepends = git + makedepends = go + source = clockify-cli-0.49.0::git+https://github.com/lucassabreu/clockify-cli#tag=v0.49.0 + sha256sums = 98b03480f99f0984e6da98badd89b366f808eaca18a9d5985e10e6ba898e1c70 + +pkgname = clockify-cli diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0ccb3f73744d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Dennis Herbrich (Gyroplast) <dennis.herbrich@veloxis.de> + +pkgname=clockify-cli +pkgver=0.49.0 +pkgrel=1 +pkgdesc='A simple cli to manage your time entries on Clockify from terminal' +arch=('x86_64') +url='https://clockify-cli.netlify.app' +license=('Apache-2.0') +makedepends=('git' 'go') +source=("${pkgname}-${pkgver}::git+https://github.com/lucassabreu/clockify-cli#tag=v${pkgver}") +sha256sums=('98b03480f99f0984e6da98badd89b366f808eaca18a9d5985e10e6ba898e1c70') + +prepare() { + cd "${pkgname}-${pkgver}" + mkdir -p build +} + +build() { + cd "${pkgname}-${pkgver}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + export GOPATH="${srcdir}" + go build -o build ./cmd/clockify-cli +} + +package() { + cd "${pkgname}-${pkgver}" + install -Dm755 build/clockify-cli "${pkgdir}/usr/bin/clockify-cli" +} |