summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4c671b6518457139b420e092528217862ea0b7f9 (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: Martin Sandsmark <martin.sandsmark@kde.org>

pkgname=yzis-git
pkgver=r2905.7807cb8e
pkgrel=1
pkgdesc='Vi-like editor with frontends for Qt5 and NCurses'
arch=('i686' 'x86_64')
url='https://github.com/sandsmark/yzis'
license=('LGPL' 'GPL')
depends=('qt5-base' 'qt5-xmlpatterns' 'lua51' 'ncurses' 'gettext' 'perl')
makedepends=('cmake' 'git' 'doxygen')
conflicts=(yzis)
provides=(yzis)
source=('git+https://github.com/sandsmark/yzis.git')
md5sums=('SKIP')

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

prepare() {
  mkdir -p build
}

build() {
    cd build
    cmake ../yzis \
        -DCMAKE_BUILD_TYPE=Debug \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DENABLE_NYZIS=True \
        -DENABLE_QYZIS=True \
        -DENABLE_KYZIS=False \
        -DENABLE_KPART_YZIS=False \
        -DENABLE_LIBYZISRUNNER=False \
        -DENABLE_TESTS=False \
        -DENABLE_X_IN_NYZIS=False \
        -DENABLE_SAFE_MODE=True \

    make
}

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