91 lines
2.6 KiB
Bash
91 lines
2.6 KiB
Bash
# Template file for 'weechat'
|
|
pkgname=weechat
|
|
version=2.0.1
|
|
revision=1
|
|
lib32disabled=yes
|
|
build_style=cmake
|
|
configure_args="-DENABLE_MAN=ON -DENABLE_ENCHANT=ON -DPYTHON_EXECUTABLE=/usr/bin/python2.7 -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so"
|
|
hostmakedepends="pkg-config python-devel libgcrypt-devel tcl-devel asciidoc"
|
|
makedepends="tcl-devel enchant-devel libgcrypt-devel gnutls-devel
|
|
python-devel ruby-devel lua-devel libcurl-devel perl"
|
|
depends="ca-certificates"
|
|
short_desc="Fast, light and extensible IRC client"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-3"
|
|
homepage="https://www.weechat.org"
|
|
distfiles="${homepage}/files/src/$pkgname-$version.tar.bz2"
|
|
checksum=425f3268fc9cb2a70610554380f1d5711bb8471178ef97159ec85918bea77b4b
|
|
|
|
subpackages="weechat-aspell weechat-devel weechat-ruby weechat-python weechat-tcl weechat-lua weechat-perl"
|
|
|
|
if [ -n "$CROSS_BUILD" ]; then
|
|
_perlpath="${XBPS_CROSS_BASE}/usr/lib/perl5/core_perl/CORE"
|
|
configure_args+=" -DPERL_FOUND=1
|
|
-DPERL_EXECUTABLE=0
|
|
-DPERL_INCLUDE_PATH=$_perlpath
|
|
-DPERL_LIBRARY=${XBPS_CROSS_BASE}/usr/lib/libperl.so
|
|
-DPERL_CFLAGS=-I$_perlpath
|
|
-DPERL_LFLAGS=-L$_perlpath"
|
|
fi
|
|
|
|
post_extract() {
|
|
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
|
|
}
|
|
|
|
weechat-aspell_package() {
|
|
lib32disabled=yes
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - aspell/enchant plugin"
|
|
pkg_install() {
|
|
vmove usr/lib/weechat/plugins/aspell.so
|
|
}
|
|
}
|
|
weechat-devel_package() {
|
|
lib32disabled=yes
|
|
depends="${sourcepkg}>=${version}_${revision} ncurses-devel"
|
|
short_desc+=" - development package"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|
|
weechat-perl_package() {
|
|
lib32disabled=yes
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - perl plugin"
|
|
pkg_install() {
|
|
vmove usr/lib/weechat/plugins/perl.so
|
|
}
|
|
}
|
|
weechat-ruby_package() {
|
|
lib32disabled=yes
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - ruby plugin"
|
|
pkg_install() {
|
|
vmove usr/lib/weechat/plugins/ruby.so
|
|
}
|
|
}
|
|
weechat-python_package() {
|
|
lib32disabled=yes
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - python plugin"
|
|
pkg_install() {
|
|
vmove usr/lib/weechat/plugins/python.so
|
|
}
|
|
}
|
|
weechat-tcl_package() {
|
|
lib32disabled=yes
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - tcl plugin"
|
|
pkg_install() {
|
|
vmove usr/lib/weechat/plugins/tcl.so
|
|
}
|
|
}
|
|
weechat-lua_package() {
|
|
lib32disabled=yes
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - lua plugin"
|
|
pkg_install() {
|
|
vmove usr/lib/weechat/plugins/lua.so
|
|
}
|
|
}
|