summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 879be84b1be4396961b7eefbbb1953cc42d57edb (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# SPDX-License-Identifier: AGPL-3.0
#
# Maintainer:  Pellegrino Prevete <cGVsbGVncmlub3ByZXZldGVAZ21haWwuY29tCg== | base -d>
# Maintainer:  Truocolo <truocolo@aol.com>
# Contributor: Marcell Meszaros < marcell.meszaros AT runbox.eu >
# Contributor: Daniel Peukert <daniel@peukert.cc>
# Contributor: Lukas Fleischer <lfleischer@archlinux.org>
# Contributor: Kevin Houdebert <kevin@qwazerty.eu>
# Contributor: Erhan SAHIN <erhan@ssahin.net>

_py='python2'
_pkg='monotonic'
pkgname="${_py}-monotonic"
pkgver=1.6
pkgrel=2
_pkgdesc=(
  'An implementation of time.monotonic()'
  '(legacy Python 2 version)'
)
pkgdesc="${_pkgdesc[*]}"
arch=('any')
url="https://pypi.org/project/${_pkg}/${pkgver}/"
license=('Apache')
depends=(
  'python2'
)
makedepends=(
  'python2-setuptools'
)
_tar="${_pkg}-${pkgver}"
_url="https://github.com/atdt/${_pkg}"
source=(
  "${_tar}.tar.gz::${_url}/archive/${pkgver}.tar.gz"
)
sha256sums=(
  '9609c249aed584fd714811014870650d08d6f6414402b5a190663c49bf83b221'
)

build() {
    cd \
      "${_tar}"
    "${_py}" \
      setup.py \
        build
}

package() {
    cd \
      "${_tar}"
    "${_py}" \
      setup.py \
        install \
          --root="${pkgdir}" \
          --optimize=1 \
          --skip-build
}

# vim:set sw=2 sts=-1 et: