From 1c48df9554758c622b6aad542fd338e23a78d814 Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Thu, 22 Aug 2024 23:03:35 -0700 Subject: [PATCH] update pkgbuild --- PKGBUILD | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index ccab842..d7f8bf4 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,30 +1,29 @@ -# Maintainer: Sudacode -_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. +