blob: 79f72c5fba216e0cd889f46b51443f9cf440a85e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Maintainer: Kylie CT <kyliepc@proton.ne>
# Contributor: Mark Wagie <mark.wagie@proton.me>
# Contributor: David Runge <dave@sleepmap.de>
pkgname=python-yapsy-git
_pkgname="${pkgname/-git/}"
_srcname="${_pkgname/python-/}"
pkgver=release_Yapsy.1.12.2.r17.g6b487b0
pkgrel=1
pkgdesc="A simple plugin system for Python applications (built from the latest commit)"
arch=('any')
url="https://github.com/tibonihoo/yapsy"
license=('BSD-2-Clause')
depends=('python' 'python-packaging')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel' 'git')
#checkdepends=('python-pytest')
conflicts=("$_pkgname")
provides=("$_pkgname")
source=("$_srcname::git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "$_srcname"
git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$_srcname/package"
python -m build --wheel --no-isolation
}
#check() {
# cd "$_srcname"
# pytest
#}
package() {
cd "$_srcname/package"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|