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