summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ce0650cc67b40754a43f38fe86481abe88707638 (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
#Maintainer: Arnaud Joset <info [AT] agayon [DOT] be>

pkgname=('sat-templates-hg')
_realname=sat_templates
pkgver=0.7.r223.5db3aacee4a3
_version=0.7
pkgrel=1
url="https://salut-a-toi.org/"
pkgdesc="sat-templates is a collection of templates for Salut à Toi, the multi-frontends multi-purposes XMPP client (core). For now, it needs to be accessible in the PYTHONPATH"

arch=('any')
depends=('python' 'python-jinja')
makedepends=('mercurial')
conflicts=('sat-templates')
provides=('sat-templates')
license=('AGPL3')
source=("hg+https://repos.goffi.org/sat_templates")
md5sums=('SKIP')
options=('!strip')

pkgver() {
  cd "$_realname"
  printf "$_version.r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
}

build() {
  cd "$srcdir/$_realname"
  python setup.py build
}

package(){
  cd "$srcdir/$_realname"
  python setup.py install --root="$pkgdir/" --prefix=/usr --optimize=1  --skip-build
}