blob: 43a4095e2c93bee68dcdcb46e6f9abfd476c285b (
plain)
1 # Description: the extensible chat client
2 # URL: https://weechat.org/
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: cmake gnutls libgcrypt
5 # Optional: asciidoc aspell guile lua ninja ruby tcl
6
7 name=weechat
8 version=3.8
9 release=1
10 source=(https://weechat.org/files/src/$name-$version.tar.xz)
11
12 build() {
13 prt-get isinst ninja && PKGMK_WEECHAT+=' -G Ninja'
14 prt-get isinst asciidoc || PKGMK_WEECHAT+=' -D ENABLE_MAN=OFF'
15 prt-get isinst aspell || PKGMK_WEECHAT+=' -D ENABLE_SPELL=OFF'
16 prt-get isinst guile || PKGMK_WEECHAT+=' -D ENABLE_GUILE=OFF'
17 prt-get isinst lua || PKGMK_WEECHAT+=' -D ENABLE_LUA=OFF'
18 prt-get isinst ruby || PKGMK_WEECHAT+=' -D ENABLE_RUBY=OFF'
19 prt-get isinst tcl || PKGMK_WEECHAT+=' -D ENABLE_TCL=OFF'
20
21 cmake -S $name-$version -B build $PKGMK_WEECHAT \
22 -D CMAKE_INSTALL_PREFIX=/usr \
23 -D CMAKE_BUILD_TYPE=Release \
24 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
25 -D WEECHAT_HOME="~/.config/weechat" \
26 -D ENABLE_PERL=ON \
27 -D ENABLE_PYTHON=ON \
28 -D ENABLE_PHP=OFF \
29 -D ENABLE_NLS=OFF \
30 -Wno-dev
31 cmake --build build
32 DESTDIR=$PKG cmake --install build
33 }
|