diff --git a/.SRCINFO b/.SRCINFO index 602d4e5..b498138 100644 --- a/.SRCINFO +++ b/.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 diff --git a/PKGBUILD b/PKGBUILD index 4397950..20ab874 100644 --- a/PKGBUILD +++ b/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')