Package Details: pyprland 2.4.3-0

Git Clone URL: https://aur.archlinux.org/pyprland.git (read-only, click to copy)
Package Base: pyprland
Description: Customize your Hyprland with scratchpads, menus, easy monitor layout and other extensions
Upstream URL: https://github.com/hyprland-community/pyprland
Licenses: MIT
Conflicts: pyprland
Provides: pyprland
Submitter: fab31
Maintainer: fab31
Last Packager: fab31
Votes: 7
Popularity: 0.051678
First Submitted: 2023-04-28 19:10 (UTC)
Last Updated: 2024-11-06 21:44 (UTC)

Latest Comments

fab31 commented on 2024-05-12 17:21 (UTC)

@kirasok: The patch didn't apply but I manually applied something close to your proposal.

kirasok commented on 2024-05-12 10:33 (UTC)

I've improved style of PKGBUILD a bit:

  1. Change URL to hyprland-community
  2. Depend on Hyprland
  3. Download tarball instead of using git
  4. Check m5sum
  5. Install LICENSE file (MIT Licenses need to be installed)

You can apply this patch with git am < file.patch (include the tailing blank line in the patch file):

From ae4998606f92938c457b894deb61a31e53ac767c Mon Sep 17 00:00:00 2001
From: Kira Sokolova <Kyra256@proton.me>
Date: Sun, 12 May 2024 13:21:15 +0300
Subject: [PATCH] Improve PKGBUILD style

1. Change URL to hyprland-community
2. Depend on Hyprland
3. Download tarball instead of using git
4. Check m5sum
5. Install LICENSE file (MIT Licenses need to be installed)
---
 .SRCINFO | 10 +++++-----
 PKGBUILD | 33 +++++++++++----------------------
 2 files changed, 16 insertions(+), 27 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index 907c5e2..f02a99e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,19 @@
 pkgbase = pyprland
    pkgdesc = Customize your Hyprland with scratchpads, menus, easy monitor layout and other extensions
    pkgver = 2.2.17
-   pkgrel = 1
-   url = https://github.com/fdev31/pyprland
+   pkgrel = 2
+   url = https://github.com/hyprland-community/pyprland
    arch = any
    license = MIT
-   makedepends = git
    makedepends = python-build
    makedepends = python-installer
    makedepends = python-poetry
    depends = python
    depends = python-aiofiles
+   depends = hyprland
    provides = pyprland
    conflicts = pyprland
-   source = git+https://github.com/fdev31/pyprland.git#tag=2.2.17
-   md5sums = SKIP
+   source = https://github.com/hyprland-community/pyprland/archive/refs/tags/2.2.17.tar.gz
+   md5sums = 047c43900a07ed29a12df71c95ed1971

 pkgname = pyprland
diff --git a/PKGBUILD b/PKGBUILD
index c224f1c..0197246 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,38 +2,27 @@
 # Contributor: Fabien Devaux <fdev31@gmail.com>
 pkgname=pyprland
 pkgver=2.2.17
-pkgrel=1
+pkgrel=2
 pkgdesc="Customize your Hyprland with scratchpads, menus, easy monitor layout and other extensions"
 arch=(any)
-url="https://github.com/fdev31/pyprland"
+url="https://github.com/hyprland-community/pyprland"
 license=('MIT')
-groups=()
-depends=('python' 'python-aiofiles')
-makedepends=('git' 'python-build' 'python-installer' 'python-poetry')
-provides=("${pkgname}")
-conflicts=("${pkgname}")
-replaces=()
-backup=()
-options=()
-install=
-source=(git+"https://github.com/fdev31/pyprland.git#tag=${pkgver}")
-noextract=()
-md5sums=('SKIP')
-
-pkgver() {
-    cd "$srcdir/${pkgname%-git}"
-    git checkout ${pkgver}
-    printf "%s" "$(git describe --tags)"
-}
+depends=('python' 'python-aiofiles' 'hyprland')
+makedepends=('python-build' 'python-installer' 'python-poetry')
+provides=("$pkgname")
+conflicts=("$pkgname")
+source=("$url/archive/refs/tags/${pkgver}.tar.gz")
+md5sums=('047c43900a07ed29a12df71c95ed1971')

 build() {
-    cd "$srcdir/${pkgname%-git}"
+    cd $pkgname-$pkgver
     python -m build --wheel --no-isolation
 }

 package() {
-    cd "$srcdir/${pkgname%-git}"
+    cd $pkgname-$pkgver
     python -m installer --destdir="$pkgdir" dist/*.whl
     install -Dm0644 "scripts/completions/pypr.bash" "$pkgdir/usr/share/bash-completion/completions/pypr"
     install -Dm0644 "scripts/completions/pypr.zsh" "$pkgdir/usr/share/zsh/site-functions/_pypr"
+    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
-- 
2.45.0


phunni commented on 2024-04-13 15:17 (UTC) (edited on 2024-04-13 15:18 (UTC) by phunni)

Am getting the following build errors with the latest version:

==> Removing existing $pkgdir/ directory...
==> Starting build()...
* Getting build dependencies for wheel...
* Building wheel...
Successfully built pyprland-2.2.5-py3-none-any.whl
==> Entering fakeroot environment...
==> Starting package()...
usage: python -m installer [-h] [--destdir path] [--prefix path] [--compile-bytecode level] [--no-compile-bytecode] wheel
python -m installer: error: unrecognized arguments: dist/pyprland-2.2.5-py3-none-any.whl
==> ERROR: A failure occurred in package().
    Aborting...