blob: 699cb5ee84b896f83ae253ffdff5e76ad56ab9b5 (
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
|
# Maintainer: relrel <relrelbachar@gmail.com>
pkgname=vim-torque
pkgver=20200821.e0973e6
pkgrel=1
pkgdesc="Syntax highlighting support for the V8 Torque domain-specific language"
arch=('any')
url="https://chromium.googlesource.com/v8/v8/+/HEAD/tools/torque/vim-torque/"
license=('BSD')
groups=(vim-plugins)
depends=(vim)
makedepends=(git)
pkgver() {
cd "$srcdir/v8/"
printf "%s.%s" $(date +%Y%m%d -d @$(git show -s --format=%ct HEAD)) $(git rev-parse --short HEAD)
}
prepare() {
git clone --depth=1 --no-checkout https://chromium.googlesource.com/v8/v8 "$srcdir/v8/"
cd "$srcdir/v8/"
git checkout HEAD -- LICENSE tools/torque/vim-torque/
}
package() {
cd "$srcdir/v8/tools/torque/vim-torque/"
install -d "$pkgdir/usr/share/vim/vimfiles/"
cp -r -t "$pkgdir/usr/share/vim/vimfiles/" ftdetect/ syntax/
install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" "$srcdir/v8/LICENSE"
}
|