summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a4b9237ab26d8047d2ed095578e8e1a0ccbb4c9a (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
# Maintainer: lxgr <lxgr@protonmail.com>

pkgbase=scrap_engine-git
pkgname=python-scrap_engine-git
pkgver=1.4.1
pkgrel=1
arch=(any)
url="https://github.com/lxgr-linux/scrap_engine"
license=('GPL3')
depends=('python')
makedepends=('git' 'python-setuptools' 'python-wheel' 'python-pip')
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'
}

package() {
  cd "${srcdir}/$pkgbase"
  python setup.py install --root="$pkgdir" --optimize=1
  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/scrap_engine/LICENSE"
}