diff options
author | KarlWithK | 2021-03-28 01:57:12 -0400 |
---|---|---|
committer | KarlWithK | 2021-03-28 01:57:12 -0400 |
commit | 335e5839bbce073261dcd515e1f4fc8e22c575d0 (patch) | |
tree | 28edb1b0e07b79f9f807c1e0125cf7aec489d6ed | |
download | aur-335e5839bbce073261dcd515e1f4fc8e22c575d0.tar.gz |
Created a working PKGBUILD
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8fe1f4c6c155 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = python-lookatme-qrcode + pkgdesc = Lookatme extension adds QR code rendering capabilities to the code blocks. + pkgver = 2.1.0 + pkgrel = 1 + url = https://github.com/d0c-s4vage/lookatme.contrib.qrcode + arch = any + license = MIT + checkdepends = python-pytest + checkdepends = python-pytest-cov + checkdepends = python-pytest-runner + makedepends = python-setuptools + depends = python-lookatme + depends = python-pyqrcode + optdepends = python-lookatme-ueberzug: renders images with the image_ueberzug extension + optdepends = python-lookatme-render: render code blocks of supported languages into images + optdepends = python-lookatme-qrcode: embeds qrcodes in the presentation + source = lookatme.contrib.qrcode-2.1.0.tar.gz::https://github.com/d0c-s4vage/lookatme.contrib.qrcode/archive/refs/tags/v2.1.0.tar.gz + md5sums = 1058bb388097b2f55b7af2408b5f2f29 + +pkgname = python-lookatme-qrcode + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d1536136ba19 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +#Maintainer: KarlWithK < jocelinc60 at outlook d@t com > +pkgname=python-lookatme-qrcode +_pkgname=lookatme.contrib.qrcode +pkgver=2.1.0 +pkgrel=1 +pkgdesc='Lookatme extension adds QR code rendering capabilities to the code blocks.' +arch=('any') +url="https://github.com/d0c-s4vage/lookatme.contrib.qrcode" +license=('MIT') +depends=('python-lookatme' 'python-pyqrcode') +makedepends=('python-setuptools') +optdepends=('python-lookatme-ueberzug: renders images with the image_ueberzug extension' 'python-lookatme-render: render code blocks of supported languages into images' 'python-lookatme-qrcode: embeds qrcodes in the presentation') +checkdepends=('python-pytest' 'python-pytest-cov' 'python-pytest-runner') +source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/d0c-s4vage/${_pkgname}/archive/refs/tags/v${pkgver}.tar.gz") +md5sums=('1058bb388097b2f55b7af2408b5f2f29') + +build() { + cd "$srcdir/$_pkgname-${pkgver}" + python setup.py build +} + +check() { + cd $srcdir/$_pkgname-$pkgver + pytest +} + +package() { + cd "$srcdir/$_pkgname-${pkgver}" + python setup.py install --skip-build --optimize=1 --root="$pkgdir/" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# vim:set ts=2 sw=2 et: |