blob: 303b77e2863a528957449a840bbc02fa89e02ef0 (
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: Mike Pento <mpento@darkforge.net>
_python=python
_pkgname=python-efl
pkgname=$_python-efl-git
pkgver=1.26.99a1261.gc8d7bdd
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+https://git.enlightenment.org/enlightenment/$_pkgname.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
local v_ver=$($_python setup.py -V | sed 's/-//' | tail -1)
[[ "$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.md ChangeLog
}
|