blob: 06fdb62fe7c19624662d6489a65c00b1faa0924b (
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
|
# Contributor: Mia Teufel <mteufel@urandom.eu.org>
_base=ircmatch
pkgname=python-${_base}-git
pkgver=ircmatch.1.1.r7.g0083a41
pkgrel=1
pkgdesc="python extension for fast IRC mask matching and collapsing"
arch=(i686 x86_64)
url="https://github.com/mammon-ircd/${_base}"
license=('custom')
depends=(python)
makedepends=(python-build python-installer python-setuptools python-wheel git)
options=(!emptydirs)
source=(git+${url}.git)
md5sums=('SKIP')
pkgver() {
cd ${_base}
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd ${_base}
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd ${_base}
PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|