summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e8b6bf0e5fb3e005ea9de31045b9f185fcc7d436 (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
# Maintainer: Will Handley <wh260@cam.ac.uk> (aur.archlinux.org/account/wjhandley)
_pkgname=vim-apl
pkgname=$_pkgname-git
pkgver=r96.49142e9
pkgrel=1
pkgdesc="vim package for APL syntax and autocompletion"
arch=('any')
url="https://codeberg.org/ngn/vim-apl"
license=('GPL')
groups=('vim-plugins')
depends=('vim')
makedepends=()
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=(!emptydirs)
install=
source=("${pkgname%-git}::git+$url.git")
noextract=()
md5sums=('SKIP')

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

package() {
  cd "$srcdir/${pkgname%-git}"
  installpath="${pkgdir}/usr/share/vim/vimfiles"
  install -d $installpath/autoload/ $installpath/ftdetect $installpath/ftplugin $installpath/keymap $installpath/syntax
  install -Dm644 autoload/* $installpath/autoload/
  install -Dm644 ftdetect/* $installpath/ftdetect/
  install -Dm644 ftplugin/* $installpath/ftplugin/
  install -Dm644 keymap/* $installpath/keymap/
  install -Dm644 syntax/* $installpath/syntax/
}