summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 06e9191565ae13b0a8f11ee431524cb34973f498 (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
# Maintainer: Andrii Burkivskyi <buryk212@gmail.com>
_gitname='zsh-extract'
pkgname="${_gitname}-git"
pkgver=r2.85ee9a2
pkgrel=1
pkgdesc="This plugin defines a function called extract that extracts the archive file you pass it, and it supports a wide variety of archive filetypes."
arch=('any')
url="https://github.com/le0me55i/zsh-extract"
license=(custom:MIT)
depends=('zsh')
makedepends=('git')
provides=('zsh-extract')
conflicts=('zsh-extract')
source=('git+https://github.com/le0me55i/zsh-extract.git')
install=zsh-extract-git.install
sha256sums=('SKIP')

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

package() {
	cd "${srcdir}/${_gitname}"

	install -Dm644 extract.plugin.zsh "${pkgdir}/usr/share/zsh/plugins/${_gitname}/extract.plugin.zsh"
	install -Dm644 _extract "${pkgdir}/usr/share/zsh/site-functions/_extract"
	install -Dm644 README.md "${pkgdir}/usr/share/doc/${_gitname}/README.md"
	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}