blob: dc624311cdf57d3be05489a9b81b029cc0ddc012 (
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
54
55
56
57
|
# Maintainer: Pellegrino Prevete (tallero) <pellegrinoprevete@gmail.com>
# Contributor: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
# Contributor: Maurizio Porrato <maurizio.porrato@gmail.com>
_py=python
_pkg=wokkel
_pkgname="${_py}-${_pkg}"
pkgbase="${_pkgname}-git"
pkgname=(
"${pkgbase}"
)
pkgver=0.7.1.r45.g9df5060
pkgrel=1
pkgdesc="Twisted Jabber support library - git version"
license=(
'custom:"Wokkel License"'
)
url="http://${_pkg}.ik.nu/"
_ns="ralphm"
_url="https://github.com/${_ns}/${_pkg}"
arch=(any)
makedepends=(
'git'
"${_py}-setuptools"
)
_branch="remove-py2-compat"
source=("${_pkgname}::git+${_url}#branch=${_branch}")
md5sums=('SKIP')
pkgver() {
cd "${_pkgname}"
git describe --long --tags \
| sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package_python-wokkel-git() {
depends=(
"${_py}-twisted"
)
replaces=(
"${_pkgname}-hg"
)
provides=(
"${_pkgname}=0.8")
conflicts=(
"${_pkgname}"
"${_pkgname}-hg"
)
cd "${_pkgname}"
"${_py}" setup.py install --root="$pkgdir/" \
--optimize=1
install -Dm644 LICENSE \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|