2022-10-21 23:45:43 -07:00
|
|
|
# Maintainer: Sudacode <the dot sudacode at gmail dot com>
|
|
|
|
_pkgname=python-rofi
|
|
|
|
pkgname="${_pkgname}-git"
|
2022-10-23 23:15:58 -07:00
|
|
|
_pkgver=1.2.0
|
2022-10-29 13:01:22 -07:00
|
|
|
pkgver=r4.a982072
|
2022-10-21 23:45:43 -07:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc='Python wrapper for rofi'
|
|
|
|
license=('MIT')
|
2022-10-28 13:35:16 -07:00
|
|
|
makedepends=('git' 'python-setuptools' 'fakeroot')
|
2022-10-21 23:45:43 -07:00
|
|
|
arch=('any')
|
|
|
|
url="https://gitea.suda.codes/sudacode/python-rofi.git"
|
|
|
|
provides=('python-rofi')
|
|
|
|
source=("git+${url}")
|
2022-10-28 13:35:16 -07:00
|
|
|
sha256sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "$_pkgname"
|
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
2022-10-21 23:45:43 -07:00
|
|
|
|
|
|
|
build() {
|
2022-10-28 13:35:16 -07:00
|
|
|
cd "$_pkgname"
|
2022-10-21 23:45:43 -07:00
|
|
|
python -m build --wheel --no-isolation
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-10-28 13:35:16 -07:00
|
|
|
cd "$_pkgname"
|
|
|
|
python setup.py install --optimize=1 --prefix=/usr --root="$pkgdir" --skip-build
|
2022-10-21 23:45:43 -07:00
|
|
|
}
|