summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c2237464e88a0aaf9d49aecb6c5210c887cbaaeb (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
# Maintainer: solaraquarion <shlomochoina@gmail.com>

pkgname=domterm-git
pkgver=2.1.r94.g40e9b1b
pkgrel=1
pkgdesc="Terminal emulator capable of display html and images from command output"
arch=('x86_64')
url=https://github.com/PerBothner/DomTerm
license=('BSD')
groups=()
conflicts=(qtdomterm)
makedepends=('git' 'vim' 'asciidoctor' 'zip' 'json-c')
depends=(file qt5-webengine qt5-webchannel libwebsockets java-runtime)
source=('git+https://github.com/PerBothner/DomTerm.git'
        'git+https://github.com/warmcat/libwebsockets')
md5sums=('SKIP'
         'SKIP')

pkgver(){
  cd "$srcdir"/DomTerm
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {

    cd "$srcdir"/libwebsockets
    mkdir build
    cd build
    cmake -DLWS_WITH_SSL=0 -DLWS_WITH_ZIP_FOPS=1 ..
    make
    cd "$srcdir"/DomTerm
    autoreconf -vfi
    ./configure --with-qtwebengine --with-libwebsockets="$srcdir"/libwebsockets/build --with-javafx --prefix=/usr
    make V=1
}

package() {
    cd "$srcdir"/DomTerm
    make install DESTDIR="$pkgdir"
    install -m 755 "$srcdir"/DomTerm/bin/{h,img,svg}cat "$pkgdir"/usr/bin
    mkdir -p $pkgdir/usr/share/licenses/$pkgname
    install -Dm755 COPYING $pkgdir/usr/share/licenses/$pkgname
}