blob: f5ea677eb59f613ff257c7d49f93725750d9a987 (
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
|
# Maintainer: Ke Liu <spcter119@gmail.com>
pkgname=python-ehforwarderbot-git
_provide=${pkgname%-git}
_name=${_provide#python-}
pkgver=r587.7fa06e4
pkgrel=1
pkgdesc='An extensible message tunneling chat bot framework. Delivers messages to and from multiple platforms and remotely control your accounts.'
arch=('any')
url='https://github.com/blueset/ehForwarderBot'
license=('AGPL-3')
groups=('efb')
depends=(
'python-ruamel-yaml'
'python-bullet'
'python-cjkwrap'
'python-typing_extensions')
makedepends=(
'git'
'python-setuptools')
provides=($_provide)
conflicts=($_provide)
source=("$_provide"::"git+${url}.git"
ehforwarderbot@.service)
md5sums=(
'SKIP'
'2f7d9209aaed5ae6144877914a9d2559')
pkgver() {
cd "$srcdir/$_provide"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
install=ehforwarderbot.install
build() {
cd "$srcdir/$_provide"
python setup.py clean --all
python setup.py build
cd "build/lib/${_name//-/_}/locale/"
rm -rf ach_UG
for _locale in $(ls); do
(cd "$_locale/LC_MESSAGES/"; msgfmt "${_name//-/_}.po" -o "${_name//-/_}.mo")
done
}
package() {
cd "$srcdir/$_provide"
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
install -Dm644 "$srcdir/ehforwarderbot@.service" "$pkgdir/usr/lib/systemd/system/ehforwarderbot@.service"
install -Dm644 "$srcdir/$_provide/LICENSE.md" "$pkgdir/usr/share/licenses/$_provide/LICENSE.md"
}
|