blob: 4948185525893be92ff361a135bf9a6b7c92caab (
plain)
1 # Description: XLib in pure Python
2 # URL: https://github.com/python-xlib/python-xlib
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: python3-importlib_metadata
5
6 name=python3-xlib
7 version=0.29
8 release=1
9 source=(https://github.com/python-xlib/python-xlib/releases/download/$version/python-xlib-$version.tar.bz2)
10
11 build() {
12 cd python-xlib-$version
13 /usr/bin/python3 setup.py build
14 /usr/bin/python3 setup.py install --root=$PKG \
15 --optimize=1 \
16 --skip-build
17 find $PKG \(\
18 -iname '*pkg-info*' -o \
19 -iname '*sources*' -o \
20 -iname '*dependency_links*' -o \
21 -iname '*top_level*' -o \
22 -iname '*requires*' \) -exec rm -fr '{}' \+
23 }
|