update pkgbuild

This commit is contained in:
ksyasuda 2024-08-22 23:03:35 -07:00
parent daf6a470b8
commit 1c48df9554
No known key found for this signature in database

View File

@ -1,30 +1,29 @@
# Maintainer: Sudacode <the dot sudacode at gmail dot com> pkgname=python-rofi
_pkgname=python-rofi pkgver=a982072 # You may adjust this based on tags or commits
pkgname="${_pkgname}-git"
_pkgver=1.2.0
pkgver=r4.a982072
pkgrel=1 pkgrel=1
pkgdesc='Python wrapper for rofi' pkgdesc="A Python interface for Rofi"
license=('MIT')
makedepends=('git' 'python-setuptools' 'fakeroot')
arch=('any') arch=('any')
url="https://gitea.suda.codes/sudacode/python-rofi.git" url="https://gitea.suda.codes/sudacode/python-rofi"
provides=('python-rofi') license=('MIT') # Replace with the correct license if different
source=("git+${url}") depends=('python')
sha256sums=('SKIP') makedepends=('git' 'python-setuptools')
source=("git+https://gitea.suda.codes/sudacode/python-rofi.git")
sha256sums=('SKIP') # No checksum needed for git sources
pkgver() { pkgver() {
cd "$_pkgname" cd "$srcdir/$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" git describe --tags --always | sed 's/-/./g'
} }
build() { build() {
cd "$_pkgname" cd "$srcdir/$pkgname"
python -m build --wheel --no-isolation python setup.py build
} }
package() { package() {
cd "$_pkgname" cd "$srcdir/$pkgname"
python setup.py install --optimize=1 --prefix=/usr --root="$pkgdir" --skip-build python setup.py install --root="$pkgdir/" --optimize=1
} }
# Optional: Add a package() function if the package has other files to install.