From a2439e44aa9548052bf6ac4751470b799cb78494 Mon Sep 17 00:00:00 2001 From: sudacode Date: Tue, 18 Jul 2023 13:23:56 -0700 Subject: [PATCH] update --- .SRCINFO | 18 +++++++----------- PKGBUILD | 35 ++++++++++------------------------- 2 files changed, 17 insertions(+), 36 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 9804ab8..030694a 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,15 +1,11 @@ -pkgbase = python-rofi-git - pkgdesc = Python wrapper for rofi - pkgver = r4.a982072 +pkgbase = python-rofi + pkgdesc = A package for using Rofi in Python. + pkgver = 1.2.0 pkgrel = 1 - url = https://gitea.suda.codes/sudacode/python-rofi.git + url = https://gitea.suda.codes/api/packages/sudacode/pypi/simple/ arch = any license = MIT - makedepends = git - makedepends = python-setuptools - makedepends = fakeroot - provides = python-rofi - source = git+https://gitea.suda.codes/sudacode/python-rofi.git - sha256sums = SKIP + depends = python + depends = python-pip -pkgname = python-rofi-git +pkgname = python-rofi diff --git a/PKGBUILD b/PKGBUILD index ccab842..598dcea 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,30 +1,15 @@ -# Maintainer: Sudacode -_pkgname=python-rofi -pkgname="${_pkgname}-git" -_pkgver=1.2.0 -pkgver=r4.a982072 +# Maintainer: Your Name + +pkgname=python-rofi +pkgver=1.2.0 pkgrel=1 -pkgdesc='Python wrapper for rofi' -license=('MIT') -makedepends=('git' 'python-setuptools' 'fakeroot') +pkgdesc="A package for using Rofi in Python." # replace with the package's description 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 -} +url="https://gitea.suda.codes/api/packages/sudacode/pypi/simple/" +license=('MIT') # replace with the package's license +depends=('python' 'python-pip') package() { - cd "$_pkgname" - python setup.py install --optimize=1 --prefix=/usr --root="$pkgdir" --skip-build + python -m pip install --index-url "$url" --root="$pkgdir/" "$pkgname==$pkgver" } +