summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 35140275fac47983984ca4bcd82b7739dbd8e045 (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
# Maintainer: loh.tar <loh.tar at googlemail dot com>
# Thanks to kate-latex-plugin.git which was my starting point for this PKGBUILD
pkgname="kate-indexview-plugin"
_pkgname="KatePlugin-IndexView"
pkgver="0.8.4"
pkgrel="1"
pkgdesc="A fork from Kate's SymbolViewer plugin with a couple of improvements"
arch=("i686" "x86_64")
url="https://github.com/loh-tar/$_pkgname"
license=("LGPL")
depends=("kate")
makedepends=("cmake" "extra-cmake-modules")
source=("$pkgname-$pkgver.tar.gz::https://github.com/loh-tar/$_pkgname/archive/v$pkgver.tar.gz")
md5sums=('31671d149308efc01303be06f924cd0f')

build()
{
  if [[ -d ${srcdir}/build ]]; then
    rm -rf "$srcdir/build"
  fi
  mkdir "$srcdir/build"; cd "$srcdir/build"

  cmake -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
        ../"$_pkgname-$pkgver"/
  make
}

package()
{
  cd "$srcdir/build"
  make DESTDIR="$pkgdir" install
}