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
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

View File

@ -1,30 +1,15 @@
# Maintainer: Sudacode <the dot sudacode at gmail dot com>
_pkgname=python-rofi
pkgname="${_pkgname}-git"
_pkgver=1.2.0
pkgver=r4.a982072
# Maintainer: Your Name <your.email@example.com>
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"
}