This commit is contained in:
sudacode 2023-07-18 13:23:56 -07:00
parent daf6a470b8
commit a2439e44aa
2 changed files with 17 additions and 36 deletions

View File

@ -1,15 +1,11 @@
pkgbase = python-rofi-git pkgbase = python-rofi
pkgdesc = Python wrapper for rofi pkgdesc = A package for using Rofi in Python.
pkgver = r4.a982072 pkgver = 1.2.0
pkgrel = 1 pkgrel = 1
url = https://gitea.suda.codes/sudacode/python-rofi.git url = https://gitea.suda.codes/api/packages/sudacode/pypi/simple/
arch = any arch = any
license = MIT license = MIT
makedepends = git depends = python
makedepends = python-setuptools depends = python-pip
makedepends = fakeroot
provides = python-rofi
source = git+https://gitea.suda.codes/sudacode/python-rofi.git
sha256sums = SKIP
pkgname = python-rofi-git pkgname = python-rofi

View File

@ -1,30 +1,15 @@
# Maintainer: Sudacode <the dot sudacode at gmail dot com> # Maintainer: Your Name <your.email@example.com>
_pkgname=python-rofi
pkgname="${_pkgname}-git" pkgname=python-rofi
_pkgver=1.2.0 pkgver=1.2.0
pkgver=r4.a982072
pkgrel=1 pkgrel=1
pkgdesc='Python wrapper for rofi' pkgdesc="A package for using Rofi in Python." # replace with the package's description
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/api/packages/sudacode/pypi/simple/"
provides=('python-rofi') license=('MIT') # replace with the package's license
source=("git+${url}") depends=('python' 'python-pip')
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
}
package() { package() {
cd "$_pkgname" python -m pip install --index-url "$url" --root="$pkgdir/" "$pkgname==$pkgver"
python setup.py install --optimize=1 --prefix=/usr --root="$pkgdir" --skip-build
} }