blob: 40ef5410e4bb4e35f86ba00b09a0fc8715986109 (
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
|
# Maintainer: lxgr <lxgr@protonmail.com>
pkgbase=scrap_engine-git
pkgname=python-scrap_engine-git
pkgver=1.4.2
pkgrel=1
arch=(any)
url="https://github.com/lxgr-linux/scrap_engine"
license=('GPL3')
depends=('python')
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
provides=('python-scrap_engine')
conflicts=('python-scrap_engine')
pkgdesc="Python scrap_engine module"
source=("$pkgbase"::'git+https://github.com/lxgr-linux/scrap_engine')
md5sums=('SKIP')
pkgver() {
cd "$pkgbase"
git describe --tags --always | sed -r 's|release-||g;s/([^-]*-g)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/$pkgbase"
python -m build --wheel
}
package() {
cd "${srcdir}/$pkgbase"
python -m installer --destdir="$pkgdir" dist/*.whl
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/scrap_engine/LICENSE"
}
|