blob: 20194811542cd83fba8da29003f1947db3acec57 (
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: Thaodan <theodorstormgrade@gmai.com>
_pkgname=TelegramUserMapBot
pkgname=python-${_pkgname,,}-git
pkgrel=2
pkgver=r37.0454e3c
pkgdesc="A Telegram Bot to collect location information from users and export the coordinates to a map service."
url="https://github.com/Thaodan/$_pkgname"
arch=('any')
license=('GPL3')
depends=('python-peewee' 'python-telegram-bot')
source=(git+https://github.com/Thaodan/$_pkgname#branch=merger)
pkgver() {
cd "$srcdir/$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build()
{
cd "$srcdir/$_pkgname"
python setup.py build
}
package() {
cd "$srcdir/$_pkgname"
python setup.py install --skip-build --root="$pkgdir" --optimize=1
install -Dm755 $_pkgname.service "$pkgdir"/usr/lib/systemd/system/$_pkgname.service
install -dm755 "$pkgdir"/etc/$_pkgname
}
md5sums=('SKIP')
|