summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3e36aed680376cb1507c270c13adbd7760269777 (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
# Maintainer: Gilrain <gilrain+libre.arch A_T castelmo DOT_ re>

pkgname=gedit-plugin-grammalecte
_pluginname=gedit-grammalecte
pkgver=v0.1
pkgrel=2
pkgdesc="Un greffon pour intégrer Grammalecte dans gedit."
url="https://github.com/sveyret/gedit-grammalecte"
arch=('any')
license=(GPL3)
depends=(gedit grammalecte)
makedepends=(git python)
_commit=2a0ed5deefaf85045f665c677d0005d1efa701af  # tags/0.1^0
source=("git+https://github.com/sveyret/gedit-grammalecte#commit=$_commit")
sha512sums=('SKIP')

pkgver() {
  cd $_pluginname
  git describe --tags | sed 's/-/+/g'
}

build() {
  cd $_pluginname
  make
}

check() {
  cd $_pluginname
  make test
}

package() {
  cd $_pluginname
  make DESTDIR="$pkgdir" install
  python -m compileall -d /usr "$pkgdir/usr"
  python -O -m compileall -d /usr "$pkgdir/usr"
}

# vim:set ts=2 sw=2 et: