# Maintainer: Alex Forencich pkgname=python-cocotbext-axi-git pkgver=0.1.24.r0.gaf377b2 pkgrel=1 pkgdesc="AXI, AXI lite, and AXI stream modules for cocotb" arch=('any') url="https://github.com/alexforencich/cocotbext-axi" license=('MIT') depends=('python-cocotb' 'python-cocotb-bus') provides=('python-cocotbext-axi') conflicts=('python-cocotbext-axi') makedepends=('git' 'python-setuptools') _gitroot='https://github.com/alexforencich/cocotbext-axi.git' _gitname='cocotbext-axi' source=("$_gitname::git+$_gitroot") md5sums=('SKIP') pkgver() { cd "$srcdir/$_gitname" git describe --tags --long | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' } build() { cd "$srcdir/$_gitname" python setup.py build } package() { cd "$srcdir/$_gitname" python setup.py install --skip-build --prefix=/usr --root="$pkgdir/" --optimize=1 install -m 644 -D ./LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE }