blob: 21f1a5e203ad84cc05c8e0cf99905a2a238e8c3b (
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
35
36
37
38
39
40
41
42
|
# Maintainer: Gabriele Fulgaro <gabriele.fulgaro@gmail.com>
# Contributor: wangjiezhe <wangjiezhe AT yandex DOT com>
# Contributor: Shengyu Zhang <la@archlinuxcn.org>
_pkgname=lice
pkgname="${_pkgname}-git"
pkgver=0.4.64.g9940116
pkgrel=1
pkgdesc='Generate license files for your projects'
arch=('any')
url="https://github.com/licenses/${_pkgname}"
license=('custom:BSD3')
depends=('python')
makedepends=('git' 'python-setuptools')
checkdepends=('python-pytest')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+${url}.git")
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
git describe | sed 's/-/./g'
}
build() {
cd "${srcdir}/${_pkgname}"
python setup.py build
}
check() {
cd "${srcdir}/${_pkgname}"
pytest
}
package() {
cd "${srcdir}/${_pkgname}"
python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=2 sw=2 et:
|