Skip to content

Commit

Permalink
Package up wakatime-zsh-plugin for both regular Zsh and Oh-My-Zsh's p…
Browse files Browse the repository at this point in the history
…lugin system
  • Loading branch information
Ewout van Mansom committed Aug 31, 2021
1 parent 4d8706b commit 3ec169d
Show file tree
Hide file tree
Showing 9 changed files with 174 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
*.tar
*.tar.*
*.jar
*.exe
*.msi
*.zip
*.tgz
*.log
*.log.*
*.sig
*.tar.zst

pkg/
src/
15 changes: 15 additions & 0 deletions oh-my-zsh-plugin-wakatime-git/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
pkgbase = oh-my-zsh-plugin-wakatime-git
pkgdesc = Track how much time you have spent in your terminal!
pkgver = 0.1.1.r7.gd3f24e9
pkgrel = 2
url = https://github.com/sobolevn/wakatime-zsh-plugin
arch = any
license = MIT
depends = zsh
depends = oh-my-zsh-git
conflicts = oh-my-zsh-plugin-wakatime
source = zsh-wakatime::git+https://github.com/sobolevn/wakatime-zsh-plugin.git
sha512sums = SKIP
b2sums = SKIP

pkgname = oh-my-zsh-plugin-wakatime-git
29 changes: 29 additions & 0 deletions oh-my-zsh-plugin-wakatime-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Maintainer: Ewout van Mansom <[email protected]>

pkgname=oh-my-zsh-plugin-wakatime-git
pkgver=0.1.1.r7.gd3f24e9
_pkgname=wakatime
pkgrel=2
pkgdesc="Track how much time you have spent in your terminal!"
arch=('any')
url="https://github.com/sobolevn/wakatime-zsh-plugin"
license=('MIT')
depends=('zsh' 'oh-my-zsh-git')
conflicts=('oh-my-zsh-plugin-wakatime')
source=(
"zsh-wakatime::git+https://github.com/sobolevn/wakatime-zsh-plugin.git"
)
sha512sums=('SKIP')
b2sums=('SKIP')

pkgver() {
cd zsh-wakatime
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
cd zsh-wakatime
install -vDm 644 ${_pkgname}.plugin.zsh \
-t "${pkgdir}/usr/share/oh-my-zsh/custom/plugins/${_pkgname}/"
}

14 changes: 14 additions & 0 deletions oh-my-zsh-plugin-wakatime/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pkgbase = oh-my-zsh-plugin-wakatime
pkgdesc = Track how much time you have spent in your terminal!
pkgver = 0.1.0
pkgrel = 1
url = https://github.com/sobolevn/wakatime-zsh-plugin
arch = any
license = MIT
depends = zsh
depends = oh-my-zsh-git
source = zsh-wakatime::git+https://github.com/sobolevn/wakatime-zsh-plugin.git#tag=0.1.0
sha512sums = SKIP
b2sums = SKIP

pkgname = oh-my-zsh-plugin-wakatime
23 changes: 23 additions & 0 deletions oh-my-zsh-plugin-wakatime/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Maintainer: Ewout van Mansom <[email protected]>

pkgname=oh-my-zsh-plugin-wakatime
_pkgname=wakatime
pkgver=0.1.0
pkgrel=1
pkgdesc="Track how much time you have spent in your terminal!"
arch=('any')
url="https://github.com/sobolevn/wakatime-zsh-plugin"
license=('MIT')
depends=('zsh' 'oh-my-zsh-git')
source=(
"zsh-wakatime::git+https://github.com/sobolevn/wakatime-zsh-plugin.git#tag=${pkgver}"
)
sha512sums=('SKIP')
b2sums=('SKIP')

package() {
cd zsh-wakatime
install -vDm 644 ${_pkgname}.plugin.zsh \
-t "${pkgdir}/usr/share/oh-my-zsh/custom/plugins/${_pkgname}/"
}

14 changes: 14 additions & 0 deletions zsh-plugin-wakatime-git/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pkgbase = zsh-wakatime-git
pkgdesc = Track how much time you have spent in your terminal!
pkgver = 0.1.1.r7.gd3f24e9
pkgrel = 1
url = https://github.com/sobolevn/wakatime-zsh-plugin
arch = any
license = MIT
depends = zsh
conflicts = zsh-wakatime
source = zsh-wakatime::git+https://github.com/sobolevn/wakatime-zsh-plugin.git
sha512sums = SKIP
b2sums = SKIP

pkgname = zsh-wakatime-git
29 changes: 29 additions & 0 deletions zsh-plugin-wakatime-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Maintainer: Ewout van Mansom <[email protected]>

pkgname=zsh-wakatime-git
_pkgname=wakatime
pkgver=0.1.1.r7.gd3f24e9
pkgrel=1
pkgdesc="Track how much time you have spent in your terminal!"
arch=('any')
url="https://github.com/sobolevn/wakatime-zsh-plugin"
license=('MIT')
depends=('zsh')
conflicts=('zsh-wakatime')
source=(
"zsh-wakatime::git+https://github.com/sobolevn/wakatime-zsh-plugin.git"
)
sha512sums=('SKIP')
b2sums=('SKIP')

pkgver() {
cd zsh-wakatime
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
cd zsh-wakatime
install -vDm 644 ${_pkgname}.plugin.zsh \
-t "${pkgdir}/usr/share/zsh/plugins/${_pkgname}/"
}

13 changes: 13 additions & 0 deletions zsh-plugin-wakatime/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
pkgbase = zsh-wakatime
pkgdesc = Track how much time you have spent in your terminal!
pkgver = 0.1.0
pkgrel = 2
url = https://github.com/sobolevn/wakatime-zsh-plugin
arch = any
license = MIT
depends = zsh
source = zsh-wakatime::git+https://github.com/sobolevn/wakatime-zsh-plugin.git#tag=0.1.0
sha512sums = SKIP
b2sums = SKIP

pkgname = zsh-wakatime
23 changes: 23 additions & 0 deletions zsh-plugin-wakatime/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Maintainer: Ewout van Mansom <[email protected]>

pkgname=zsh-wakatime
_pkgname=wakatime
pkgver=0.1.0
pkgrel=2
pkgdesc="Track how much time you have spent in your terminal!"
arch=('any')
url="https://github.com/sobolevn/wakatime-zsh-plugin"
license=('MIT')
depends=('zsh')
source=(
"zsh-wakatime::git+https://github.com/sobolevn/wakatime-zsh-plugin.git#tag=${pkgver}"
)
sha512sums=('SKIP')
b2sums=('SKIP')

package() {
cd "${pkgname}"
install -vDm 644 ${_pkgname}.plugin.zsh \
-t "${pkgdir}/usr/share/zsh/plugins/${_pkgname}/"
}

0 comments on commit 3ec169d

Please sign in to comment.