blob: 8a3902c76c9904e7f69cc67ea9fed69d947a34e2 (
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: Jakub Klinkovský <lahwaacz at archlinux dot org>
_pkgname=python-wikeddiff
pkgname=python-wikeddiff-git
pkgdesc="Visual inline-style difference engine with block move support"
pkgver=1.2.4.r10.g035db40
pkgrel=4
arch=(any)
url="https://github.com/lahwaacz/python-wikeddiff"
license=(GPL-3.0-or-later)
depends=(python)
makedepends=(git python-setuptools)
source=('git+https://github.com/lahwaacz/python-wikeddiff')
md5sums=('SKIP')
pkgver() {
cd "$_pkgname"
git describe --tags --always | sed 's|^v||;s|\([^-]*-g\)|r\1|;s|-|.|g'
}
build() {
cd "$_pkgname"
python setup.py build
}
package() {
cd "$_pkgname"
python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim:set ts=2 sw=2 et:
|