summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aa7bac36faf63b8cfaeb17ca0fb895c59242b516 (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
# Maintainer: Leo <i@setuid0.dev>
_reponame=pgsql.vim
pkgname=vim-pgsql
pkgver=2.3.1
pkgrel=2
epoch=
pkgdesc="Vim syntax highlighting and auto-completion support for PostgreSQL"
arch=('any')
url="https://github.com/lifepillar/pgsql.vim"
license=('custom:vim')
groups=()
depends=('vim-runtime')
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(
	"$pkgname-$pkgver.tar.gz::https://github.com/lifepillar/pgsql.vim/archive/refs/tags/v$pkgver.tar.gz"
	"20220208-upstream.patch"
)
noextract=()
md5sums=('SKIP' 'SKIP')
validpgpkeys=()

prepare() {
	cd $srcdir/$_reponame-$pkgver
	patch -p1 -i "$srcdir/20220208-upstream.patch"
}

package() {
	install -D -m 644 \
		$srcdir/$_reponame-$pkgver/syntax/pgsql.vim \
		$pkgdir/usr/share/vim/vim82/syntax/pgsql.vim
}