Date: Friday, May 12, 2023 @ 21:47:13
  Author: grawlinson
Revision: 1460127

archrelease: copy trunk to community-any

Added:
  python-puremagic/repos/community-any/PKGBUILD
    (from rev 1460126, python-puremagic/trunk/PKGBUILD)
Deleted:
  python-puremagic/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   90 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 48 insertions(+), 42 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-05-12 21:46:35 UTC (rev 1460126)
+++ PKGBUILD    2023-05-12 21:47:13 UTC (rev 1460127)
@@ -1,42 +0,0 @@
-# Maintainer: George Rawlinson <[email protected]>
-
-pkgname=python-puremagic
-pkgver=1.14
-pkgrel=3
-pkgdesc="A Python module that will identify a file based off it's magic 
numbers"
-arch=('any')
-url='https://github.com/cdgriffith/puremagic'
-license=('MIT')
-depends=('python')
-makedepends=('git' 'python-setuptools')
-checkdepends=('python-pytest')
-_commit='15a93b28feca89a008bdde09ee9323095ef4ddf8'
-source=("$pkgname::git+$url#commit=$_commit")
-b2sums=('SKIP')
-
-pkgver() {
-  cd "$pkgname"
-
-  git describe --tags | sed 's/^v//'
-}
-
-build() {
-  cd "$pkgname"
-
-  python setup.py build
-}
-
-check() {
-  cd "$pkgname"
-
-  PYTHONPATH="$PWD:$PYTHONPATH" pytest
-}
-
-package() {
-  cd "$pkgname"
-
-  python setup.py install --root="$pkgdir" --optimize=1
-
-  # license
-  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
-}

Copied: python-puremagic/repos/community-any/PKGBUILD (from rev 1460126, 
python-puremagic/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-05-12 21:47:13 UTC (rev 1460127)
@@ -0,0 +1,48 @@
+# Maintainer: George Rawlinson <[email protected]>
+
+pkgname=python-puremagic
+pkgver=1.15
+pkgrel=1
+pkgdesc="A Python module that will identify a file based off it's magic 
numbers"
+arch=('any')
+url='https://github.com/cdgriffith/puremagic'
+license=('MIT')
+depends=('python')
+makedepends=(
+  'git'
+  'python-build'
+  'python-installer'
+  'python-setuptools'
+  'python-wheel'
+)
+checkdepends=('python-pytest')
+_commit='ff042db17e7477bbabcb9c5b7e8562a697f6b1cb'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+build() {
+  cd "$pkgname"
+
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd "$pkgname"
+
+  PYTHONPATH="$PWD:$PYTHONPATH" pytest
+}
+
+package() {
+  cd "$pkgname"
+
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  # license
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}

Reply via email to