summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8262a69ddf79e57285694abe4ec52d543c4f4300 (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=r32.eeb556d
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')
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'
         '427a4bf3698821e6c465c9b8049ecd00')

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/wechatircd/"
  install -Dm644 "$_pkgname/telegramircd.service" -t "$pkgdir/usr/lib/systemd/system/"
}