void-packages/srcpkgs/weechat/template
Jürgen Buchmüller b8918e2a7d lua: update to 5.3.1
+ Rename lua and lua-devel to lua52 and lua52-devel
+ Modify packages depending on lua52 accordingly:
+ Many packages auto-detect lua52 files
+ Some packages need hints where / how to find lua52
+ One package (xmoto) downgraded to lua51, because it wouldn't find lua52
+ One package (vim) upgraded to lua (5.3.1)

There may be more packages upgradable without problems.
I didn't want to change too much in this move without the
respective package maintainers first taking a look.

Most notably conky-cli wouldn't work with lua52. I upgraded it
to 1.10.0 (same as conky) and tried to keep the flags the same
for the change from gnu-configure to cmake.
2015-10-02 11:24:59 +02:00

81 lines
2.2 KiB
Bash

# Template file for 'weechat'
pkgname=weechat
version=1.3
revision=2
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="cmake pkg-config python-devel libgcrypt-devel tcl-devel asciidoc"
makedepends="tcl-devel enchant-devel libgcrypt-devel gnutls-devel
python-devel ruby-devel lua52-devel libcurl-devel"
depends="ca-certificates"
short_desc="Fast, light and extensible IRC client"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3"
homepage="http://www.weechat.org"
distfiles="${homepage}/files/src/$pkgname-$version.tar.bz2"
checksum=703dd771f74a2391bab656992712331d9151a227ac3210393a4ecf6458605148
subpackages="weechat-aspell weechat-devel weechat-ruby weechat-python weechat-tcl weechat-lua"
if [ -z "$CROSS_BUILD" ]; then
makedepends+=" perl"
subpackages+=" weechat-perl"
fi
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
}
}