blob: bb6f5945092503c1e8fea1dad071ecbbe2de28c1 (
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
|
# Maintainer: Salamandar <felix@piedallu.me>
pkgrel=1
pkgver=r60.fc06c1b
_pkgname=prezto-contrib
pkgname=prezto-contrib-git
pkgdesc="A set of additional plugins designed to work easily with prezto"
url="https://github.com/belak/prezto-contrib"
arch=('any')
license=('MIT')
depends=('prezto-git')
makedepends=('git' 'coreutils' 'sed')
source=("git+${url}")
options=('!strip')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$_pkgname"
git submodule update --init --recursive
if [[ -n "$ZPREZTODIR" ]] && [[ "$ZPREZTODIR" != "/usr/lib/prezto" ]]; then
echo "\$ZPREZTODIR should be equal to /usr/lib/prezto"
exit 1
fi
# Remove Fish specific files of Enhancd
pushd "enhancd/external" >/dev/null
rm -rf functions conf.d init.fish uninstall.fish
popd >/dev/null
}
package() {
mkdir -p "$pkgdir/usr/lib/prezto/contrib"
cp -r "$srcdir/$_pkgname"/* "$pkgdir/usr/lib/prezto/contrib"
}
|