# Maintainer: Emilio Reggi # Maintainer: Morten Linderud # Contributor: Alad Wenter pkgname=dmenu-extended-git _pkgname=dmenu-extended _source=https://github.com/markjones112358/dmenu-extended.git pkgver=r421.7ad25c0 pkgrel=1 pkgdesc='An extension to dmenu for quickly opening files and folders and run programs.' url='https://github.com/markjones112358/dmenu-extended' license=('MIT') arch=('any') depends=('python' 'dmenu' 'python-setuptools') makedepends=('git' 'python-installer' 'python-build' 'python-wheel') provides=('dmenu-extended') conflicts=('dmenu-extended') source=("${_pkgname}"::"git+${_source}") sha256sums=('SKIP') pkgver() { cd "$_pkgname" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { cd "$_pkgname" python3 -m build --wheel --no-isolation } package() { cd "$_pkgname" python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE }