aboutsummaryrefslogblamecommitdiffstats
path: root/main/py3-dbus/APKBUILD
blob: 3c9919ef158b039d983d0b8bb649ea5332fe0d10 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                             
                                                   
                
                    

             
                                   
                                                           
          
             

                      
                                                                       
                                               
                                       
                                                                                   
 
                                    
 


                                                             
 
         
                              
                     


                                 
                                        

                                


         
                  


           
                                                                            


                                      


                                                                                                                                                           
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-dbus
_pkgname=dbus-python
pkgver=1.2.18
pkgrel=0
pkgdesc="Python3 bindings for DBUS"
url="http://www.freedesktop.org/wiki/Software/DBusBindings"
arch="all"
license="MIT"
depends="python3"
depends_dev="py3-dbus"
makedepends="dbus-glib-dev python3-dev py3-sphinx py3-sphinx_rtd_theme"
checkdepends="bash dbus py3-gobject3 py3-tappy"
subpackages="$pkgname-dev $pkgname-doc"
source="https://dbus.freedesktop.org/releases/dbus-python/$_pkgname-$pkgver.tar.gz"

builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-dbus" # Backwards compatibility
provides="py-dbus=$pkgver-r$pkgrel" # Backwards compatibility


build() {
	python3 setup.py build
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-documentation \
		PYTHON_VERSION=3
	make
}

check() {
	make check
}

package() {
	python3 setup.py install --skip-build --prefix=/usr --root="$pkgdir"
	make DESTDIR="$pkgdir" install
}

sha512sums="
72f422c59637392bd78b741b66dff2afadcc706452c3e82fdc14b1dc052a0c5cb8a85e2758d18c5cbdc08004419a0b3c16b67b99688d96307084403e72585900  dbus-python-1.2.18.tar.gz
"