summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e6401533a1342524a654edba60cd1e2f3091b1ef (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
41
42
43
44
45
46
# Maintainer:
# Contributor: Icaro Perseo <icaroperseo[at]protonmail[dot]com>
# Contributor: YamashitaRen <lemaitre(dot)lotus(at)gmail(dot)com>

_pkgname="geany-highlightselectedword"
pkgname="$_pkgname"
pkgver=20160801
pkgrel=3
pkgdesc="Geany plugin that highlights all instances of the currently selected word"
url="https://sourceforge.net/projects/geanyhighlightselectedword/"
license=('GPL-2.0-or-later')
arch=('i686' 'x86_64')

depends=(
  'geany'

  ## implicit
  #at-spi2-core
  #cairo
  #gdk-pixbuf2
  #glib2
  #gtk3
  #harfbuzz
  #pango
  #zlib
)

_pkgsrc="GeanyHighlightSelectedWord_2016-08-01T00-53-19"
source=("https://downloads.sourceforge.net/project/geanyhighlightselectedword/GeanyHighlightSelectedWord_2016-08-01T00-53-19.zip")
sha256sums=('ab9d8dd680c8b446e4433bec5c3c2a329d30c1b65c2e2ecdaff95444454acfcd')

prepare() {
  cd "$_pkgsrc"
  sed -E -e 's&\bconst const\b&const&' -i GeanyHighlightSelectedWord.c
}

build() {
  cd "$_pkgsrc"
  make
}

package() {
  cd "$_pkgsrc"

  install -Dm644 GeanyHighlightSelectedWord.so "$pkgdir/usr/lib/geany/GeanyHighlightSelectedWord.so"
}