blob: 36753e5cce3a265946f01af871292f0297e188ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=telegram-cli
pkgver=0.1_git20140127
verbase=0.1
pkgrel=0
pkgdesc="Command line telegram client"
url="https://github.com/vysheng/tg"
arch="all"
license="GPL3"
depends=""
depends_dev="readline-dev openssl-dev libconfig-dev"
makedepends="$depends_dev"
subpackages=""
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz
0001-uclibc-does-not-provide-aio.h.patch
0001-change-public-key-location.patch"
giturl="git://github.com/vysheng/tg.git"
disturl="dev.alpinelinux.org:/archive/$pkgname/"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
export LUA_INCLUDE="-I/usr/include/lua5.2"
export LUA_LIBS="-Llua5.2"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--enable-libconfig \
--disable-liblua \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
install -D telegram \
"$pkgdir"/usr/bin/telegram || return 1
install -D tg.pub \
"$pkgdir"/usr/share/telegram/tg.pub || return 1
}
md5sums="fc460c51f541532fa6d0a103aa41dd29 telegram-cli-0.1_git20140127.tar.gz
ed21dd0f9056fe3a8132894ccf943844 0001-uclibc-does-not-provide-aio.h.patch
f5bd613201b14ac0d212a82ee4ef6dbb 0001-change-public-key-location.patch"
sha256sums="d47f47d438443b36397ecd83a6334ada2922741558b91c0075ee9358083c8b7a telegram-cli-0.1_git20140127.tar.gz
5a92614b40c50fcd5b5601c33d87edba421086eb777663bc6c43d18734b4cfea 0001-uclibc-does-not-provide-aio.h.patch
276ea7237e12f40f5e65d083cf8b64876aa8153adf7cbaf594a37daea71c304c 0001-change-public-key-location.patch"
sha512sums="5a0ae0c6f8f18d7b4d1b3191044e16793a5816ebb9d1a8fc423bdbf2e0e7867819021c82dab5775c1ec2e1a86dfdb729f603a22f012ce7b8e9e51976ec11f8fb telegram-cli-0.1_git20140127.tar.gz
46725ec1d6255ddb359e8e33a73510461264451689f7bcc14233e3730a6cae26073b0629af18443c1ad6e7140748e75293349b97ac8d8cec21b0c10541a62333 0001-uclibc-does-not-provide-aio.h.patch
58643338812189681ca96882325050187e6a6309937fcc0af17a630d1affcbfe0d14205fd0e80dc65a51016b6ebb916fec31d275857efed8a6a2a54268d45b31 0001-change-public-key-location.patch"
|