diff options
author | Stanislav N. aka pztrn | 2020-12-01 18:14:00 +0500 |
---|---|---|
committer | Stanislav N. aka pztrn | 2020-12-01 18:14:00 +0500 |
commit | 234c40e5e3167bd157699cc2a9c382b41f696290 (patch) | |
tree | 578f70f0dd3ea3585dd63f4d2b6358e33590dca5 | |
download | aur-234c40e5e3167bd157699cc2a9c382b41f696290.tar.gz |
Initial commit.
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 34 |
3 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e2d44c44461f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = taskfile-gotask-git + pkgdesc = A task runner / simpler Make alternative written in Go. Compiled with 'go-task' as binary name to allow coexistance with taskwarrior. + pkgver = 3.0.0.r22.gb136166 + pkgrel = 1 + url = https://github.com/go-task/task + arch = any + license = MIT + makedepends = go + makedepends = git + source = go-task::git://github.com/go-task/task#branch=master + md5sums = SKIP + +pkgname = taskfile-gotask-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..562b61a3ee9d --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +pkg +src +go-task +*.tar.zst diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1d114a35dbd8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Stanislav N. aka pztrn <pztrn@pztrn.name> +pkgname=taskfile-gotask-git +_pkgname=go-task +pkgver=3.0.0.r22.gb136166 +pkgrel=1 +pkgdesc="A task runner / simpler Make alternative written in Go. Compiled with 'go-task' as binary name to allow coexistance with taskwarrior." +arch=('any') +license=('MIT') +depends=() +url="https://github.com/go-task/task" +makedepends=('go' 'git') +source=("$_pkgname::git://github.com/go-task/task#branch=${BRANCH:-master}") +md5sums=('SKIP') +backup=() + +pkgver() { + cd "${srcdir}/${_pkgname}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//' +} + +build() { + cd "${srcdir}/${_pkgname}/cmd/task" + go build -gcflags "-trimpath ${srcdir}/${_pkgname}" -o ${_pkgname} +} + +package() { + install -Dm755 "${srcdir}/${_pkgname}/cmd/task/go-task" "${pkgdir}/usr/bin/go-task" + + install -Dm644 "${srcdir}/${_pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + install -Dm644 "$srcdir/${_pkgname}/completion/bash/task.bash" "$pkgdir/usr/share/bash-completion/completions/go-task" + install -Dm644 "$srcdir/${_pkgname}/completion/zsh/_task" "$pkgdir/usr/share/zsh/site-functions/_go-task" +} + |