summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 56515cdbc06e4bf54a40b23de3b9bdf249c0640c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: espritlibre <email@address.invalid>"
_pkgname=zsh-extract
pkgname=zsh-extract-git
pkgver=r7156.06753e814
pkgrel=1
pkgdesc="This plugin defines a function called "extract", it extracts the archive file you pass to it and it supports a wide variety of archive filetypes."
arch=(any)
url="https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/extract"
license=('unknown')
depends=("zsh")
makedepends=("git")
install="${pkgname}.install"
source=(git+https://github.com/ohmyzsh/ohmyzsh.git)
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/ohmyzsh/plugins/extract/"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  install -d "${pkgdir}/usr/share/zsh/plugins/${_pkgname}"
  install -Dm644 "${srcdir}/ohmyzsh/plugins/extract/_extract" \
        "${pkgdir}/usr/share/zsh/plugins/${_pkgname}"
        
  install -d "${pkgdir}/usr/share/zsh/plugins/${_pkgname}"
  install -Dm644 "${srcdir}/ohmyzsh/plugins/extract/extract.plugin.zsh" \
        "${pkgdir}/usr/share/zsh/plugins/${_pkgname}"
        
  install -d "${pkgdir}/usr/share/zsh/plugins/${_pkgname}"
  install -Dm644 "${srcdir}/ohmyzsh/plugins/extract/README.md" \
        "${pkgdir}/usr/share/zsh/plugins/${_pkgname}"
}