From The Compiler, 3 Years ago, written in Bash.
Embed
  1. # Maintainer: Tom Richards <tom@tomrichards.net>
  2. # Contributor: Andy Weidenbaum <archbaum@gmail.com>
  3. # Contributor: Florian Bruhin <archlinux.org@the-compiler.org>
  4.  
  5. pkgname=telegram-cli-git
  6. pkgver=r1043.160231b
  7. pkgrel=1
  8. pkgdesc="Telegram messenger CLI"
  9. arch=('i686' 'x86_64')
  10. url="https://github.com/vysheng/tg"
  11. license=('GPL2')
  12. depends=('libconfig' 'libevent' 'lua' 'jansson')
  13. makedepends=('git')
  14. conflicts=('telegram-cli')
  15. provides=('telegram-cli')
  16.  
  17. source=("$pkgname"::'git+https://github.com/vysheng/tg'
  18.         'https://patch-diff.githubusercontent.com/raw/vysheng/tg/pull/920.patch')
  19. sha256sums=('SKIP'
  20.             'cc17c9e614945cb995f440a1b663e1124da1a4ce39f405dd18850d9b58df4406')
  21.  
  22. pkgver() {
  23.     cd "$srcdir/$pkgname"
  24.     printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  25. }
  26.  
  27. prepare() {
  28.     cd "$srcdir/$pkgname"
  29.     patch -p1 -i "$srcdir/920.patch"  # https://github.com/vysheng/tg/pull/920
  30. }
  31.  
  32. build() {
  33.     cd "$srcdir/$pkgname"
  34.     git submodule update --init --recursive
  35.     ./configure
  36.     make
  37. }
  38.  
  39. package() {
  40.     cd "$srcdir/$pkgname"
  41.     install -Dm644 tg-server.pub ${pkgdir}/etc/telegram-cli/server.pub
  42.     install -Dm755 bin/telegram-cli ${pkgdir}/usr/bin/telegram-cli
  43. }

Replies to telegram-cli-git PKGBUILD rss

Title Name Language When
Re: telegram-cli-git PKGBUILD anonymous bash 2 Years ago.
Re: telegram-cli-git PKGBUILD anonymous bash 2 Years ago.
Re: telegram-cli-git PKGBUILD anonymous bash 2 Years ago.
Re: telegram-cli-git PKGBUILD anonymous bash 2 Years ago.
Re: telegram-cli-git PKGBUILD anonymous bash 2 Years ago.
Re: telegram-cli-git PKGBUILD anonymous bash 2 Years ago.
Re: telegram-cli-git PKGBUILD anonymous bash 2 Years ago.
Re: telegram-cli-git PKGBUILD anonymous bash 2 Years ago.