# Contributor: Fabian Affolter # Maintainer: Fabian Affolter setglobal pkgname = 'py-businesstime' setglobal _pkgname = 'businesstime' setglobal pkgver = '0.1.4' setglobal pkgrel = '0' setglobal pkgdesc = '"A Python utility for calculating business time between two datetimes'" setglobal url = '"https://github.com/seatgeek/businesstime'" setglobal arch = '"noarch'" setglobal license = '"BSD'" setglobal depends = '"python2'" setglobal depends_dev = ''"" setglobal makedepends = '"python2-dev py-setuptools'" setglobal install = ''"" setglobal subpackages = ''"" setglobal source = ""https://files.pythonhosted.org/packages/source/$(_pkgname:0:1)/$_pkgname/$_pkgname-$pkgver.tar.gz"" setglobal _builddir = ""$srcdir"/$_pkgname-$pkgver" proc prepare { local i cd $_builddir for i in [$source] { match $i { with *.patch msg $i; patch -p1 -i "$srcdir"/$i || return 1 } } } proc build { cd $_builddir python2 setup.py build || return 1 } proc package { cd $_builddir python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 } setglobal md5sums = '"6bba38b1f60d4a4d6c49ef9a0ef6a3ec businesstime-0.1.4.tar.gz'" setglobal sha256sums = '"65514b0833c1234f82f7386956fe1b558fa70bdc5c05605dbdb740695d99c2a6 businesstime-0.1.4.tar.gz'" setglobal sha512sums = '"7ef7b6053855708c8aac48a8f6af34f55e2a389a6a7b954c3c6e2f542ced5ef22c73392c483b2fe8de387c0c8b57eea6edb0ce714ba66755b10d5ea3eb1add34 businesstime-0.1.4.tar.gz'"