Skip to content

Commit

Permalink
addpkg: python-barcode
Browse files Browse the repository at this point in the history
  • Loading branch information
Xeonacid committed Jan 21, 2025
1 parent b200e33 commit 57767ca
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
5 changes: 5 additions & 0 deletions archlinuxcn/python-barcode/.nvchecker.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[python-pyHanko]
source = "git"
git = "https://github.com/WhyNotHugo/python-barcode.git"
use_max_tag = true
prefix = "v"
27 changes: 27 additions & 0 deletions archlinuxcn/python-barcode/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Maintainer: Xeonacid <[email protected]>

_name=barcode
pkgname=python-${_name}
pkgver=0.15.1
pkgrel=1
pkgdesc="㊙️ Create standard barcodes with Python. No external dependencies. 100% Organic Python."
arch=(any)
url="https://github.com/WhyNotHugo/$pkgname"
license=(MIT)
depends=(python)
makedepends=(git python-build python-installer python-setuptools python-wheel python-setuptools-scm)
optdepends=('python-pillow: generate images')
source=(git+$url.git#tag=v$pkgver)
sha512sums=('e4aa48f1febb742c943db8681d05a0a0436f29b82305ef37e81536546f5e312ee0c460409610a94df2474a84e855dce23a261d6b24f2f12a925ace7fb4a68370')

build() {
cd $pkgname
python -m build --wheel --no-isolation
}

package() {
cd $pkgname
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENCE -t "$pkgdir/usr/share/licenses/$pkgname"
install -Dm644 README.rst -t "$pkgdir/usr/share/doc/$pkgname"
}
15 changes: 15 additions & 0 deletions archlinuxcn/python-barcode/lilac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
maintainers:
- github: Xeonacid
email: [email protected]

pre_build_script: update_pkgver_and_pkgrel(_G.newver)

post_build_script: |
git_pkgbuild_commit()
update_on:
- source: github
github: WhyNotHugo/python-barcode
use_max_tag: true
prefix: v
- alias: python

0 comments on commit 57767ca

Please sign in to comment.