update pkgbuld
This commit is contained in:
parent
e77be5c117
commit
4d4bbdc081
5
.SRCINFO
5
.SRCINFO
@ -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
|
||||
|
19
PKGBUILD
19
PKGBUILD
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user