blob: a5bed21efd48930ecff89559f1352d5c6e30654a (
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
35
36
37
38
39
40
41
42
43
|
# Maintainer: jyantis <yantis@yantis.net>
pkgname=zaw-git
pkgver=r179.c3308b6
pkgrel=1
pkgdesc='zsh anything.el-like widget'
arch=('any')
url='https://github.com/zsh-users/zaw'
license=('custom')
depends=('zsh')
source=('git+https://github.com/zsh-users/zaw.git')
sha256sums=('SKIP')
makedepends=('git')
provides=('zaw')
conflicts=('zaw')
install='zaw.install'
pkgver() {
cd zaw
set -o pipefail
git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd zaw
# We don't need anything related to git in the package
rm -rf .git*
# Install License
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# Install Documentation
install -D -m644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README.rst"
mkdir -p "${pkgdir}/usr/share/zaw"
cp -r . "${pkgdir}/usr/share/zaw/"
}
# vim:set ts=2 sw=2 et:
|