summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 28d48d3d292fb111f0cdc7dbe4695bdf0f78b1c0 (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
_reponame='toml.lang'
pkgbase=gtksourceview-highlight-toml
pkgname=('gtksourceview2-highlight-toml' 'gtksourceview3-highlight-toml')
pkgver=r8.8f3dd72
pkgrel=1
pkgdesc='TOML syntax highlighting for gtksourceview'
arch=('any')
url=('https://github.com/liv-dumea/toml.lang')
license=('GPL')
source=('git+https://github.com/liv-dumea/toml.lang.git')
sha512sums=('SKIP')


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

package_gtksourceview2-highlight-toml() {
	depends=('gtksourceview2')

	install -Dm644 $srcdir/$_reponame/toml.lang "$pkgdir/usr/share/gtksourceview-2.0/language-specs/toml.lang"
}

package_gtksourceview3-highlight-toml() {
	depends=('gtksourceview3')

	install -Dm644 $srcdir/$_reponame/toml.lang "$pkgdir/usr/share/gtksourceview-3.0/language-specs/toml.lang"
}