aboutsummaryrefslogtreecommitdiffstats
path: root/python3-xlib (not maintaining)/PKGBUILD
blob: 1063a1bde3394bbc86201032af91ee84a2821f4f (plain) (blame)
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
pkgname=python3-xlib
pkgver=0.14
_commit=894729e50431e02939e44c92533fc292b6c69783
pkgrel=2
pkgdesc='Python 3 port of Xlib'
arch=(any)
url='https://github.com/LiuLang/python3-xlib'
license=('GPL2')
depends=('python')
makedepends=('python')
conflicts=('python-xlib')
install=python3-xlib.install
source=("${url}/archive/${_commit}.tar.gz")
sha256sums=('0fe9b2430f30cd90b6bf6cd457db218c5cabb1a7e5f81744ea36a80e90938274')


build() {
  cd "${srcdir}/${pkgname}-${_commit}/doc"
  make info
}

package() {
  cd "${srcdir}/${pkgname}-${_commit}"
  install -Dm644 doc/info/python-xlib.info "${pkgdir}/usr/share/info/python-xlib.info"
  install -dm755 "${pkgdir}/usr/share/python-xlib"
  cp -a examples "${pkgdir}/usr/share/python-xlib/examples"
  python setup.py install --prefix=/usr --root="$pkgdir"
}