summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7d240ac23af5c8762ed075a4f73063498c315b64 (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
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=editorconfig-gedit-git
pkgver=0.5.3.r8.g53d469c
pkgrel=1
pkgdesc="EditorConfig plugin for gedit"
arch=('any')
url="https://editorconfig.org/"
license=('BSD')
depends=('gedit' 'python-editorconfig')
makedepends=('git')
provides=('editorconfig-gedit')
conflicts=('editorconfig-gedit')
source=("git+https://github.com/editorconfig/editorconfig-gedit.git")
sha256sums=('SKIP')


pkgver() {
  cd "editorconfig-gedit"

  git describe --long --tags | sed 's/^[A-Za-z]*//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "editorconfig-gedit"

  _installdir="$pkgdir/usr/lib/gedit/plugins"
  mkdir -p "$_installdir"

  cp -r "editorconfig_plugin/" "$_installdir"
  cp "editorconfig.plugin" "$_installdir"
  cp "editorconfig_gedit3.py" "$_installdir"

  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/editorconfig-gedit/LICENSE"
}