Skip to content
Snippets Groups Projects
Commit 34ce4791 authored by Mark Wagie's avatar Mark Wagie
Browse files

[pkg-upd] 1.5.0-2

- use standards based build
parent 344eb1fa
No related branches found
No related tags found
No related merge requests found
......@@ -6,13 +6,13 @@
pkgname=tlpui
pkgver=1.5.0
pkgrel=1
pkgrel=2
pkgdesc="A GTK user interface for TLP written in Python"
arch=('any')
url="https://github.com/d4nj1/TLPUI"
license=('GPL2')
depends=('tlp' 'python-gobject')
makedepends=('git' 'python-setuptools')
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
_commit=83e41298674cac7487dd4f4d64f8552617d40b6c # tag=tlpui-1.5.0
source=("$pkgname::git+$url.git#commit=$_commit"
"$pkgname.desktop")
......@@ -26,12 +26,15 @@ pkgver() {
build() {
cd "$srcdir/$pkgname"
python setup.py build
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/$pkgname"
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
python -m installer --destdir="$pkgdir" dist/*.whl
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
rm -rf "${pkgdir}${site_packages}/usr"
install -Dm644 "$srcdir/$pkgname.desktop" -t \
"$pkgdir/usr/share/applications"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment