summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3d3c07de62867f5da4d945677c9746e1b883a0c9 (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
# Maintainer: Ray Song <i at maskrayme dot me>

pkgname=telegramircd-git
_pkgname=telegramircd
pkgver=r56.28b1428
pkgrel=1
pkgdesc="IRC server capable of controlling web.telegram.org"
arch=('i686' 'x86_64')
url="https://github.com/MaskRay/telegramircd"
license=('MIT')
depends=('python-aiohttp' 'python-telethon')
optdepends=("python-ipython: pretty error messages with the '-d' option")
makedepends=('git')
provides=('telegramircd')
conflicts=('telegramircd')
source=('git+https://github.com/MaskRay/telegramircd.git' install)
backup=(etc/telegramircd/config)
install=install
md5sums=('SKIP'
         'fe216c5d62a9d3ef09a952d6aac73c91')

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  install -D "$_pkgname/telegramircd.py" "$pkgdir/usr/bin/telegramircd"
  install -Dm644 "$_pkgname/config" -t "$pkgdir/etc/telegramircd/"
  install -Dm644 "$_pkgname/example_services/telegramircd.service" -t "$pkgdir/usr/lib/systemd/system/"
}