Package Details: bt-dualboot 1.0.1-2

Git Clone URL: https://aur.archlinux.org/bt-dualboot.git (read-only, click to copy)
Package Base: bt-dualboot
Description: Sync Bluetooth for dualboot Linux and Windows
Upstream URL: https://github.com/x2es/bt-dualboot
Licenses: GPL-3.0-only
Submitter: icepie
Maintainer: HurricanePootis
Last Packager: HurricanePootis
Votes: 6
Popularity: 0.23
First Submitted: 2022-10-23 03:13 (UTC)
Last Updated: 2024-11-10 02:53 (UTC)

Latest Comments

HurricanePootis commented on 2024-10-21 02:05 (UTC) (edited on 2024-10-21 02:06 (UTC) by HurricanePootis)

I have the following recommend changes to get this package building.

  1. Use the git repo as to get all the pyproject.toml build method
  2. Add required makedepends
  3. Clean up depends
  4. Add a build() function
  5. SPDX compliant license information
  6. Remove conflicts and provides because that is not relevant here.
diff --git a/PKGBUILD b/PKGBUILD
index d6ad721..88792b6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,17 +7,19 @@ pkgrel=1
 pkgdesc="Sync Bluetooth for dualboot Linux and Windows"
 arch=('any')
 url="https://github.com/x2es/bt-dualboot"
-license=('GPL3')
-provides=('bt-dualboot')
-conflicts=('bt-dualboot')
-makedepends=('git' 'python-installer' 'python-wheel')
-depends=(
-   'python'
-    'chntpw'
-)
-source=('https://files.pythonhosted.org/packages/42/82/c3e1bfca558d8a5f7dd51183ba0f1a3d2061f5442bfa54821398bb3813b8/bt_dualboot-1.0.1-py3-none-any.whl')
-sha256sums=('779ec46a4911a54918b08cf9d80a481697287c3017b38873a0152ca5e0520820')
+license=('GPL-3.0-only')
+makedepends=('git' 'python-installer' 'python-wheel' 'python-build' 'python-poetry')
+depends=('python' 'chntpw')
+source=("git+$url.git#tag=v${pkgver}")
+sha256sums=('d75ea4caf3c77df2d4c8c48a14c915514a4480fea0324275f8322e1ade64247d')
+
+
+build(){
+   cd $pkgname
+   python -m build --wheel --no-isolation
+}

 package() {
-   python -m installer --destdir="$pkgdir" "$_pkgname"-"$pkgver"-py3-none-any.whl
-}
\ No newline at end of file
+   cd $pkgname
+   python -m installer --destdir="$pkgdir" dist/*.whl
+}

anthon commented on 2023-05-23 19:01 (UTC)

I had to rebuild this package recently to fix this error: ModuleNotFoundError: No module named 'bt_dualboot'