python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / weechat / template
blobb3ca8c0f7262e0d45b6d9426b97aded470275da0
1 # Template file for 'weechat'
2 pkgname=weechat
3 version=2.1
4 revision=1
5 lib32disabled=yes
6 build_style=cmake
7 configure_args="-DENABLE_MAN=ON -DENABLE_ENCHANT=ON -DPYTHON_EXECUTABLE=/usr/bin/python2.7 -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so"
8 hostmakedepends="asciidoc libgcrypt-devel pkg-config python-devel tcl-devel"
9 makedepends="enchant-devel gnutls-devel libcurl-devel lua-devel python-devel
10  ruby-devel tcl-devel"
11 depends="ca-certificates"
12 short_desc="Fast, light and extensible IRC client"
13 maintainer="Juan RP <xtraeme@voidlinux.eu>"
14 license="GPL-3.0-or-later"
15 homepage="https://www.weechat.org"
16 distfiles="${homepage}/files/src/$pkgname-$version.tar.bz2"
17 checksum=a83977ba0ecc9d4cf3aac5977266ce9e584a3e05f1d797c2184c6ceb1f47063b
19 subpackages="weechat-aspell weechat-devel weechat-ruby weechat-python weechat-tcl weechat-lua weechat-perl"
21 if [ -n "$CROSS_BUILD" ]; then
22         _perlpath="${XBPS_CROSS_BASE}/usr/lib/perl5/core_perl/CORE"
23         configure_args+=" -DPERL_FOUND=1
24          -DPERL_EXECUTABLE=0
25          -DPERL_INCLUDE_PATH=$_perlpath
26          -DPERL_LIBRARY=${XBPS_CROSS_BASE}/usr/lib/libperl.so
27          -DPERL_CFLAGS=-I$_perlpath
28          -DPERL_LFLAGS=-L$_perlpath"
31 post_extract() {
32         sed -i '/pkg_search_module/s/ruby-2.2/ruby-2.9 ruby-2.8 ruby-2.7 ruby-2.6 ruby-2.5 ruby-2.4 ruby-2.3 &/' cmake/FindRuby.cmake
35 weechat-aspell_package() {
36         lib32disabled=yes
37         depends="${sourcepkg}>=${version}_${revision}"
38         short_desc+=" - aspell/enchant plugin"
39         pkg_install() {
40                 vmove usr/lib/weechat/plugins/aspell.so
41         }
43 weechat-devel_package() {
44         lib32disabled=yes
45         depends="${sourcepkg}>=${version}_${revision} ncurses-devel"
46         short_desc+=" - development package"
47         pkg_install() {
48                 vmove usr/include
49                 vmove usr/lib/pkgconfig
50         }
52 weechat-perl_package() {
53         lib32disabled=yes
54         depends="${sourcepkg}>=${version}_${revision}"
55         short_desc+=" - perl plugin"
56         pkg_install() {
57                 vmove usr/lib/weechat/plugins/perl.so
58         }
60 weechat-ruby_package() {
61         lib32disabled=yes
62         depends="${sourcepkg}>=${version}_${revision}"
63         short_desc+=" - ruby plugin"
64         pkg_install() {
65                 vmove usr/lib/weechat/plugins/ruby.so
66         }
68 weechat-python_package() {
69         lib32disabled=yes
70         depends="${sourcepkg}>=${version}_${revision}"
71         short_desc+=" - python plugin"
72         pkg_install() {
73                 vmove usr/lib/weechat/plugins/python.so
74         }
76 weechat-tcl_package() {
77         lib32disabled=yes
78         depends="${sourcepkg}>=${version}_${revision}"
79         short_desc+=" - tcl plugin"
80         pkg_install() {
81                 vmove usr/lib/weechat/plugins/tcl.so
82         }
84 weechat-lua_package() {
85         lib32disabled=yes
86         depends="${sourcepkg}>=${version}_${revision}"
87         short_desc+=" - lua plugin"
88         pkg_install() {
89                 vmove usr/lib/weechat/plugins/lua.so
90         }