python-rofi-git/PKGBUILD
2022-10-28 13:35:16 -07:00

31 lines
687 B
Bash

# Maintainer: Sudacode <the dot sudacode at gmail dot com>
_pkgname=python-rofi
pkgname="${_pkgname}-git"
_pkgver=1.2.0
pkgver=r3.d1cdb17
pkgrel=1
pkgdesc='Python wrapper for rofi'
license=('MIT')
makedepends=('git' 'python-setuptools' 'fakeroot')
arch=('any')
url="https://gitea.suda.codes/sudacode/python-rofi.git"
provides=('python-rofi')
source=("git+${url}")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$_pkgname"
python -m build --wheel --no-isolation
}
package() {
cd "$_pkgname"
python setup.py install --optimize=1 --prefix=/usr --root="$pkgdir" --skip-build
}