weechat: add cross build support (XXX perl and ruby pkgs are currently disabled).
This commit is contained in:
parent
5329af80f2
commit
4cafdba645
1 changed files with 19 additions and 10 deletions
|
@ -3,9 +3,9 @@ pkgname=weechat
|
|||
version=0.4.1
|
||||
revision=2
|
||||
build_style=cmake
|
||||
hostmakedepends="cmake pkg-config perl"
|
||||
hostmakedepends="cmake pkg-config"
|
||||
makedepends="tcl-devel>=8.6 aspell-devel libgcrypt-devel gnutls-devel>=3.1.5
|
||||
python-devel ruby-devel>=2.0 lua-devel libcurl-devel"
|
||||
python-devel ruby-devel>=2.0 lua-devel libcurl-devel perl"
|
||||
short_desc="Fast, light and extensible IRC client (curses UI)"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
license="GPL-3"
|
||||
|
@ -13,6 +13,10 @@ homepage="http://www.weechat.org"
|
|||
distfiles="${homepage}/files/src/$pkgname-$version.tar.bz2"
|
||||
checksum=d27bed07ee2d0638c1683ad18666d478ed9a042aeeedcd0dd9ce22f1392e0ebb
|
||||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
hostmakedepends+=" python-devel libgcrypt-devel"
|
||||
fi
|
||||
|
||||
weechat-aspell_package() {
|
||||
depends="${sourcepkg}-${version}_${revision}"
|
||||
short_desc+=" - aspell plugin"
|
||||
|
@ -30,6 +34,9 @@ weechat-devel_package() {
|
|||
}
|
||||
}
|
||||
|
||||
# XXX disabled for now in cross builds.
|
||||
if [ -z "$CROSS_BUILD" ]; then
|
||||
|
||||
weechat-perl_package() {
|
||||
depends="${sourcepkg}-${version}_${revision}"
|
||||
short_desc+=" - perl plugin"
|
||||
|
@ -38,14 +45,6 @@ weechat-perl_package() {
|
|||
}
|
||||
}
|
||||
|
||||
weechat-python_package() {
|
||||
depends="${sourcepkg}-${version}_${revision}"
|
||||
short_desc+=" - python plugin"
|
||||
pkg_install() {
|
||||
vmove usr/lib/weechat/plugins/python.so
|
||||
}
|
||||
}
|
||||
|
||||
weechat-ruby_package() {
|
||||
depends="${sourcepkg}>=${version}"
|
||||
short_desc+=" - ruby plugin"
|
||||
|
@ -54,6 +53,16 @@ weechat-ruby_package() {
|
|||
}
|
||||
}
|
||||
|
||||
fi
|
||||
|
||||
weechat-python_package() {
|
||||
depends="${sourcepkg}-${version}_${revision}"
|
||||
short_desc+=" - python plugin"
|
||||
pkg_install() {
|
||||
vmove usr/lib/weechat/plugins/python.so
|
||||
}
|
||||
}
|
||||
|
||||
weechat-tcl_package() {
|
||||
depends="${sourcepkg}-${version}_${revision}"
|
||||
short_desc+=" - tcl plugin"
|
||||
|
|
Loading…
Reference in a new issue