archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-xapp / trunk / PKGBUILD
blobb67494aaaaff599f68c8250b82856dcd8b95f7c8
1 # Maintainer: Eli Schwartz <eschwartz@archlinux.org>
2 # Contributor: Balló György <ballogyor+arch at gmail dot com>
4 _pkgname=python3-xapp
5 pkgname=python-xapp
6 pkgver=2.4.0
7 pkgrel=2
8 pkgdesc="Python Xapp Library"
9 arch=('any')
10 url="https://github.com/linuxmint/${_pkgname}"
11 license=('LGPL')
12 depends=('python' 'python-psutil')
13 makedepends=('meson')
14 source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
15 sha512sums=('7c9afabbc810ffe878e831f7e1ff585ce49abc6d1db3d4ea70deb6630e2bb18f61ded31ae0e075cccae2283cac50b3440204a586f844ba9ee9cfbcb572bf7573')
17 build(){
18   meson build ${_pkgname}-${pkgver} \
19     --prefix=/usr
20   meson compile -C build
23 package() {
24   meson install -C build --destdir="${pkgdir}"
26   # compile Python bytecode
27   python -m compileall -d / "$pkgdir"/usr/lib
28   python -O -m compileall -d / "$pkgdir"/usr/lib