31 lines
687 B
Bash
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=r4.a982072
|
|
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
|
|
}
|