summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcin Kornat2023-07-17 09:53:32 +0200
committerMarcin Kornat2023-07-17 09:53:32 +0200
commitcd5cc50b38ea0b07ecf15b50a625509d406780e8 (patch)
tree4640d509f5e2a9a1f4c0d82fb918240a11f079ba
parent356600d883fd0bf58ac2a7b290d0d9d84791f728 (diff)
downloadaur-cd5cc50b38ea0b07ecf15b50a625509d406780e8.tar.gz
bump version to 2.0.0
-rw-r--r--.SRCINFO7
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD23
3 files changed, 18 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2dc93583f771..7f6b0fbce7b3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = dymoprint
pkgdesc = Linux Software to print with LabelManager PnP from Dymo
- pkgver = 1.2.0
+ pkgver = 2.0.0
pkgrel = 1
url = https://github.com/computerlyrik/dymoprint
arch = any
@@ -12,11 +12,10 @@ pkgbase = dymoprint
depends = python-barcode
depends = usb_modeswitch
provides = dymoprint
- noextract = dymoprint-1.2.0-py2.py3-none-any.whl
- source = https://files.pythonhosted.org/packages/e6/04/0df45c240e2568bd2ad77eabe167650615e8a8cf36d5155fb6bc1eb38402/dymoprint-1.2.0-py2.py3-none-any.whl
+ source = dymoprint-2.0.0.tar.gz::https://files.pythonhosted.org/packages/45/3f/d9ce830ad960ab275de014e6a6b13aad41d04cb238759ad607cdf6a3b23f/dymoprint-2.0.0.tar.gz
source = 91-dymo-labelmanager-pnp.rules
source = dymo-labelmanager-pnp.conf
- sha256sums = 1e4885fa4a82ad7d7af41beec90f68bd5cb28a1c7400309fbcf81c23ebd127fb
+ sha256sums = 157abaeec0ea7fd46429e8f6b588a63dcfc6cbff774bdd3d16fd4a11fb86af4f
sha256sums = edbbce0aac6fceb778fef854170144842fc444326bf9c1b86c314d6dbfe6b2e8
sha256sums = 73aa314b713171892672bf9f68468bec137b37c5a7a07513b6b25573bec4e99d
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..f738a9de0564
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.tar.gz
+*.zst
+src/
+pkg/ \ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
index cfd83a2ce5af..0b175d390f6b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: Marcin Kornat <rarvolt@gmail.com>
pkgname=dymoprint
-pkgver=1.2.0
+pkgver=2.0.0
pkgrel=1
pkgdesc="Linux Software to print with LabelManager PnP from Dymo"
arch=('any')
@@ -17,25 +17,24 @@ depends=(
)
makedepends=('python-pip')
source=(
- "https://files.pythonhosted.org/packages/e6/04/0df45c240e2568bd2ad77eabe167650615e8a8cf36d5155fb6bc1eb38402/${pkgname}-${pkgver}-py2.py3-none-any.whl"
+ "${pkgname}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/45/3f/d9ce830ad960ab275de014e6a6b13aad41d04cb238759ad607cdf6a3b23f/${pkgname}-${pkgver}.tar.gz"
"91-dymo-labelmanager-pnp.rules"
"dymo-labelmanager-pnp.conf"
)
-noextract=("${pkgname}-${pkgver}-py2.py3-none-any.whl")
-sha256sums=('1e4885fa4a82ad7d7af41beec90f68bd5cb28a1c7400309fbcf81c23ebd127fb'
+sha256sums=('157abaeec0ea7fd46429e8f6b588a63dcfc6cbff774bdd3d16fd4a11fb86af4f'
'edbbce0aac6fceb778fef854170144842fc444326bf9c1b86c314d6dbfe6b2e8'
'73aa314b713171892672bf9f68468bec137b37c5a7a07513b6b25573bec4e99d')
+
+build() {
+ cd "${pkgname}-${pkgver}"
+ python -m build --wheel --no-isolation
+}
+
package() {
install -Dm644 91-dymo-labelmanager-pnp.rules "${pkgdir}/etc/udev/rules.d/91-dymo-labelmanager-pnp.rules"
install -Dm644 dymo-labelmanager-pnp.conf "${pkgdir}/etc/usb_modeswitch.d/dymo-labelmanager-pnp.conf"
- cd "${srcdir}"
- PIP_CONFIG_FILE=/dev/null pip install \
- --no-warn-script-location \
- --isolated \
- --root="${pkgdir}" \
- --ignore-installed \
- --no-deps \
- *.whl
+ cd "${pkgname}-${pkgver}"
+ python -m installer --destdir="${pkgdir}" dist/*.whl
}