blob: 97034331519f88a72978d18e097d1951de1f898f (
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
|
# Maintainer: Mikhail felixoid Shiryaev mr<dot>felixoid<at>gmail<dot>com
_name=did
pkgname="python-${_name}-git"
pkgver=0.21.1.r584.d585e98
pkgrel=1
pkgdesc='What did you do last week, month, year? Patched version for a proper github comments'
arch=('any')
url="https://github.com/Felixoid/did"
makedepends=('python-setuptools' 'git')
license=('GPL2')
provides=("python-${_name}")
conflicts=("python-${_name}")
depends=('python')
source=(
"${_name}::git+${url}.git"
)
sha256sums=(SKIP)
pkgver() {
cd "${_name}"
_version=$(python setup.py -V)
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "%s.r%s.%s" "${_version}" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
package() {
cd "${srcdir}/${_name}"
python setup.py install --root="${pkgdir}" --optimize=1
}
|