mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 13:57:14 +02:00
community/tg: enabled lua support
This commit is contained in:
parent
08b6e2ae43
commit
9cf9e0ecbb
@ -2,7 +2,7 @@
|
||||
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
|
||||
pkgname=tg
|
||||
pkgver=1.3.1
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
tglver=2.0.1
|
||||
tlparserver=0_git20151118
|
||||
pkgdesc="Command line Telegram client"
|
||||
@ -10,8 +10,8 @@ url="https://github.com/vysheng/tg"
|
||||
arch="all"
|
||||
license="GPL3"
|
||||
depends=""
|
||||
depends_dev="readline-dev openssl-dev libconfig-dev libevent-dev jansson-dev"
|
||||
makedepends="$depends_dev zlib-dev"
|
||||
depends_dev="readline-dev openssl-dev libconfig-dev libevent-dev jansson-dev lua5.2-dev"
|
||||
makedepends="$depends_dev zlib-dev grep"
|
||||
subpackages=""
|
||||
provides="telegram-cli"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/vysheng/tg/archive/$pkgver.tar.gz
|
||||
@ -44,15 +44,17 @@ prepare() {
|
||||
|
||||
build() {
|
||||
cd "$_builddir"
|
||||
export LUA_INCLUDE="-I/usr/include/lua5.2"
|
||||
export LUA_LIBS="-Llua5.2"
|
||||
./configure --prefix=/usr \
|
||||
export LUA=/usr/bin/lua5.2
|
||||
export LUA_INCLUDE=-I/usr/include/lua5.2
|
||||
export LUA_LIB=$(pkg-config --libs lua5.2)
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--mandir=/usr/share/man \
|
||||
--infodir=/usr/share/info \
|
||||
--localstatedir=/var \
|
||||
--enable-libconfig \
|
||||
--disable-liblua \
|
||||
--enable-liblua \
|
||||
|| return 1
|
||||
make || return 1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user