# Maintainer: Anthony Cornehl # https://github.com/twinshadow/openstack-aur _realpkgname="oslo-config" pkgname="python2-${_realpkgname}-git" pkgdesc="A configuration API supports parsing command line arguments and .ini style configuration files" pkgver=0.0.0 pkgrel=1 conflicts=("python2-${_realpkgname}") provides=("python2-${_realpkgname}") arch=("any") license=("custom") url="https://github.com/openstack/oslo.config" depends=( "python2" "python2-six" ) makedepends=( "python2-setuptools" "git" ) source=("$pkgname"::"git+https://github.com/openstack/${_realpkgname/-/.}") md5sums=("SKIP") pkgver() { cd "$pkgname" local ver="$(git describe --long)" printf "%s" "${ver//-/.}" } build() { cd "$pkgname" python2 setup.py build } package() { cd "$pkgname" python2 setup.py install --root="$pkgdir" --optimize=1 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${_realpkgname}/LICENSE" }