update pkgbuld
This commit is contained in:
parent
e77be5c117
commit
4d4bbdc081
5
.SRCINFO
5
.SRCINFO
@ -1,12 +1,13 @@
|
|||||||
pkgbase = python-rofi-git
|
pkgbase = python-rofi-git
|
||||||
pkgdesc = Python wrapper for rofi
|
pkgdesc = Python wrapper for rofi
|
||||||
pkgver = 1.2.0
|
pkgver = r3.d1cdb17
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = https://gitea.suda.codes/sudacode/python-rofi.git
|
url = https://gitea.suda.codes/sudacode/python-rofi.git
|
||||||
arch = any
|
arch = any
|
||||||
license = MIT
|
license = MIT
|
||||||
makedepends = python-wheel
|
|
||||||
makedepends = git
|
makedepends = git
|
||||||
|
makedepends = python-setuptools
|
||||||
|
makedepends = fakeroot
|
||||||
provides = python-rofi
|
provides = python-rofi
|
||||||
source = git+https://gitea.suda.codes/sudacode/python-rofi.git
|
source = git+https://gitea.suda.codes/sudacode/python-rofi.git
|
||||||
sha256sums = SKIP
|
sha256sums = SKIP
|
||||||
|
19
PKGBUILD
19
PKGBUILD
@ -2,24 +2,29 @@
|
|||||||
_pkgname=python-rofi
|
_pkgname=python-rofi
|
||||||
pkgname="${_pkgname}-git"
|
pkgname="${_pkgname}-git"
|
||||||
_pkgver=1.2.0
|
_pkgver=1.2.0
|
||||||
pkgver=${_pkgver//-/_}
|
pkgver=r3.d1cdb17
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='Python wrapper for rofi'
|
pkgdesc='Python wrapper for rofi'
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
makedepends=('python-wheel')
|
makedepends=('git' 'python-setuptools' 'fakeroot')
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="https://gitea.suda.codes/sudacode/python-rofi.git"
|
url="https://gitea.suda.codes/sudacode/python-rofi.git"
|
||||||
provides=('python-rofi')
|
provides=('python-rofi')
|
||||||
makedepends=('python-wheel' 'git')
|
|
||||||
source=("git+${url}")
|
source=("git+${url}")
|
||||||
|
sha256sums=('SKIP')
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
cd "$_pkgname"
|
||||||
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir/${_pkgname}"
|
cd "$_pkgname"
|
||||||
python -m build --wheel --no-isolation
|
python -m build --wheel --no-isolation
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$pkgdir"
|
cd "$_pkgname"
|
||||||
python -m installer --destdir="$pkgdir" "$srcdir/$_pkgname"/dist/*.whl
|
python setup.py install --optimize=1 --prefix=/usr --root="$pkgdir" --skip-build
|
||||||
}
|
}
|
||||||
sha256sums=('SKIP')
|
|
||||||
|
Loading…
Reference in New Issue
Block a user