From 57de52ec817a88d122e188fc488bc17636a2fa10 Mon Sep 17 00:00:00 2001 From: Nicholas Novak <34256932+NickyBoy89@users.noreply.github.com> Date: Sat, 18 Mar 2023 11:43:46 -0700 Subject: [PATCH] Added PKGBUILD for package --- PKGBUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..17c73f0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Nicholas Novak + +pkgname=assign-notify +pkgver=r2.582eaf6 +pkgrel=1 +pkgdesc="Assignment Notifier CLI" +arch=('any') +makedepends=('git') +provides=('assign-notify') +depends=('go') +url="https://gitlab.nicholasnovak.io/nnovak/assign-notify" +source=( + "assign-notify::git+ssh://git@ssh-gitlab.nicholasnovak.io:1022/nnovak/assign-notify.git" +) +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/assign-notify" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/assign-notify" + go build . +} + +package() { + # Install the binary + install -vDm 755 "$srcdir/assign-notify/$pkgname" "$pkgdir/usr/bin/$pkgname" +}