blob: d65115f47850ef4328aaa1b7663b93281985543c (
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
|
# Maintainer: Ray Song <i at maskrayme dot me>
pkgname=wechatircd-git
_pkgname=wechatircd
pkgver=r85.bb8f354
pkgrel=1
pkgdesc="IRC server capable of controlling Web WeChat"
arch=('i686' 'x86_64')
url="https://github.com/MaskRay/wechatircd"
license=('MIT')
depends=('python-aiohttp' 'python-configargparse')
optdepends=("python-ipython: pretty error messages with the '-d' option")
makedepends=('git')
provides=('wechatircd')
conflicts=('wechatircd')
source=('git+https://github.com/MaskRay/wechatircd.git' wechatircd.install)
backup=(etc/wechatircd/config)
install="$_pkgname.install"
md5sums=('SKIP' 'SKIP')
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$_pkgname"
sed -ri 's/^#(http-root:)/\1/' config
}
package() {
install -D "$_pkgname/wechatircd.py" "$pkgdir/usr/bin/wechatircd"
install -Dm644 "$_pkgname/config" -t "$pkgdir/etc/wechatircd/"
install -Dm644 "$_pkgname/injector.js" -t "$pkgdir/usr/share/wechatircd/"
install -Dm644 "$_pkgname/wechatircd.service" -t "$pkgdir/usr/lib/systemd/system/"
}
|