update pkgbuld

This commit is contained in:
ksyasuda 2022-10-28 13:35:16 -07:00
parent e77be5c117
commit 4d4bbdc081
2 changed files with 15 additions and 9 deletions

View File

@ -1,12 +1,13 @@
pkgbase = python-rofi-git
pkgdesc = Python wrapper for rofi
pkgver = 1.2.0
pkgver = r3.d1cdb17
pkgrel = 1
url = https://gitea.suda.codes/sudacode/python-rofi.git
arch = any
license = MIT
makedepends = python-wheel
makedepends = git
makedepends = python-setuptools
makedepends = fakeroot
provides = python-rofi
source = git+https://gitea.suda.codes/sudacode/python-rofi.git
sha256sums = SKIP

View File

@ -2,24 +2,29 @@
_pkgname=python-rofi
pkgname="${_pkgname}-git"
_pkgver=1.2.0
pkgver=${_pkgver//-/_}
pkgver=r3.d1cdb17
pkgrel=1
pkgdesc='Python wrapper for rofi'
license=('MIT')
makedepends=('python-wheel')
makedepends=('git' 'python-setuptools' 'fakeroot')
arch=('any')
url="https://gitea.suda.codes/sudacode/python-rofi.git"
provides=('python-rofi')
makedepends=('python-wheel' 'git')
source=("git+${url}")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${_pkgname}"
cd "$_pkgname"
python -m build --wheel --no-isolation
}
package() {
cd "$pkgdir"
python -m installer --destdir="$pkgdir" "$srcdir/$_pkgname"/dist/*.whl
cd "$_pkgname"
python setup.py install --optimize=1 --prefix=/usr --root="$pkgdir" --skip-build
}
sha256sums=('SKIP')