summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c34b10bef22dde237a2ba153c3b5d874dfbe080f (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
# Maintainer: Yardena Cohen <yardenack at gmail dot com>

gitname=pycollada
pkgname=${gitname}-git
pkgver=399.014a1f4
pkgrel=1
pkgdesc="Create, edit and load COLLADA documents in Python"
arch=('any')
url="https://github.com/${gitname}/${gitname}"
license=("BSD3")
depends=(python-lxml python-numpy python-dateutil python-distribute)
makedepends=(git)
provides=(
    python-collada
    pycollada
)
conflicts=(
    python-collada
    pycollada
)
source=("git+${url}.git")
sha512sums=('SKIP')

pkgver() {
	 cd "${srcdir}/${gitname}"
	 local ver="$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
	 printf "%s" "${ver//-/.}"
}

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

package() {
	 cd "${srcdir}/${gitname}"
	 python setup.py install --root="$pkgdir" --optimize=1
}