summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0239e359b86ab8ebc0ff173e5e80e7478dc65850 (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
# Maintainer: willemw <willemw12@gmail.com>
# Contributor: Rax Garfield <admin@dvizho.ks.ua>

pkgname=qutepart-git
pkgver=3.3.3.r4.g9cca26c
pkgrel=2
pkgdesc='Code editor component for PyQt and Pyside'
arch=(any)
url=https://github.com/hlamer/qutepart
license=(LGPL)
makedepends=(git pcre python-build python-installer python-wheel python-setuptools)
depends=(python-pyqt5)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+https://github.com/hlamer/${pkgname%-git}.git")
sha256sums=('SKIP')

pkgver() {
  git -C $pkgname describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  git -C $pkgname clean -dfx
}

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

package() {
  cd $pkgname
  python -m installer --destdir="$pkgdir" dist/*.whl
}