blob: dd78eae6d3557f9958487378efd4661dd8d4586a (
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
|
# Maintainer: Doug Newgard <scimmia at archlinux dot info>
_python=python
_pkgname=python-efl
pkgname=$_python-efl-git
pkgver=1.14.99a936.g37930f3
pkgrel=1
pkgdesc="${_python^} bindings for the Enlightenment Foundation Libraries - Development Version"
arch=('i686' 'x86_64')
url="http://www.enlightenment.org"
license=('LGPL3' 'GPL3')
depends=("efl>=${pkgver%a*.*}" "$_python-dbus")
makedepends=('git' "${_python/p/c}")
provides=("${pkgname%-*}=$pkgver")
conflicts=("${pkgname%-*}")
source=("git://git.enlightenment.org/bindings/python/$_pkgname.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
local v_ver=$($_python setup.py -V | sed 's/-//')
[[ "$v_ver" =~ ".99a" ]] || v_ver="${v_ver}.a$(git rev-list --count HEAD)"
printf "%s.g%s" "$v_ver" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$_pkgname"
$_python setup.py build
}
package() {
cd "$srcdir/$_pkgname"
$_python setup.py install --root="$pkgdir" --optimize=1
# install text files
install -d "$pkgdir/usr/share/doc/${pkgname%-*}/"
install -m644 -t "$pkgdir/usr/share/doc/${pkgname%-*}/" AUTHORS README ChangeLog
}
|