93 lines
2.7 KiB
Bash
93 lines
2.7 KiB
Bash
# Template file for 'weechat'
|
|
pkgname=weechat
|
|
version=2.9
|
|
revision=2
|
|
build_style=cmake
|
|
configure_args="-DENABLE_MAN=ON -DENABLE_ENCHANT=ON -DENABLE_PERL=ON
|
|
-DENABLE_LUA=ON -DENABLE_RUBY=ON -DENABLE_SPELL=ON
|
|
-DENABLE_GUILE=OFF -DENABLE_PHP=OFF -DENABLE_JAVASCRIPT=OFF
|
|
-DPYTHON_EXECUTABLE=/usr/bin/python3
|
|
-DPYTHON_LIBRARY=${XBPS_CROSS_BASE}/usr/lib/libpython3.so"
|
|
hostmakedepends="ruby-asciidoctor libgcrypt-devel pkg-config python3 tcl-devel"
|
|
makedepends="enchant-devel gnutls-devel libcurl-devel lua53-devel ncurses-devel
|
|
perl python3-devel ruby-devel tcl-devel"
|
|
depends="ca-certificates"
|
|
short_desc="Fast, light and extensible IRC client"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://www.weechat.org"
|
|
changelog="https://raw.githubusercontent.com/weechat/weechat/master/ChangeLog.adoc"
|
|
distfiles="https://www.weechat.org/files/src/weechat-${version}.tar.xz"
|
|
checksum=eab406c385c3a10d0107ddc3aac6596ae8c59af99e9158c6d769e90ec9adfa0e
|
|
lib32disabled=yes
|
|
|
|
subpackages="weechat-aspell weechat-devel weechat-ruby weechat-python weechat-tcl weechat-lua weechat-perl"
|
|
|
|
if [ "$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
|
|
|
|
weechat-aspell_package() {
|
|
lib32disabled=yes
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - aspell/enchant plugin"
|
|
pkg_install() {
|
|
vmove usr/lib/weechat/plugins/spell.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
|
|
}
|
|
}
|