aboutsummaryrefslogblamecommitdiffstats
path: root/community/py-setproctitle/APKBUILD
blob: cf4798aeb2e480a17de60caf2bfc3ad7668d05b2 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                               
                         
             
        
                                                        
                                                  
          
             
          
                                              
                                                   

                                                                                                      

         
                      
 
                                          
                              


           














                                        

                                                      
                      
                                                                  

 


                                                                                                                                                                            
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=py-setproctitle
_pkgname="${pkgname#py-}"
pkgver=1.1.10
pkgrel=3
pkgdesc="A Python module to customize the process title"
url="https://github.com/dvarrazzo/py-setproctitle"
arch="all"
license="BSD"
depends=""
makedepends="python2-dev python3-dev musl-dev"
subpackages="py2-$_pkgname:_py2 py3-$_pkgname:_py3"
source="$pkgname-$pkgver.tar.gz::https://github.com/dvarrazzo/$pkgname/archive/version-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-version-$pkgver"

build() {
	cd "$builddir"

	python2 setup.py build || return 1
	python3 setup.py build
}

package() {
	mkdir -p "$pkgdir"
}

_py2() {
	replaces="$pkgname"
	_py python2
}

_py3() {
	_py python3
}

_py() {
	local python="$1"
	pkgdesc="$pkgdesc (for $python)"
	install_if="$pkgname=$pkgver-r$pkgrel $python"

	cd "$builddir"
	$python setup.py install --prefix=/usr --root="$subpkgdir"
}

md5sums="bc3ab23d326b5cdc8ca0a1d45b422ae4  py-setproctitle-1.1.10.tar.gz"
sha256sums="1c3a8f60b90bbe1d7987597c1ef637ecfbc8f4bb2a5500c36fb232ea7bedf925  py-setproctitle-1.1.10.tar.gz"
sha512sums="987729fd4f6b1f6ca1bead0814a2917eee4a30b01cdd8c3f0d028c4f925f1d1eff2ee2fe3945a2770d9cc7a6f2e74059db21dc8cd112d66304bd481fd287da23  py-setproctitle-1.1.10.tar.gz"