summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5db2ee22561c26a0771c096f2b51049680faeccd (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
# Maintainer: KokaKiwi <kokakiwi+aur@kokakiwi.net>

pkgname=bikeshed-git
pkgver=2.2.3.3886cea8b
pkgrel=1
pkgdesc='A preprocessor for anyone writing specifications.'
arch=('any')
url="https://tabatkins.github.io/bikeshed/"
license=('custom:CC0')
depends=('python'
         'python-aiofiles' 'python-aiohttp' 'python-attrs' 'python-certifi'
         'python-cssselect' 'python-html5lib' 'python-isodate' 'python-json_home_client'
         'python-lxml' 'python-pygments' 'python-requests' 'python-result'
         'python-tenacity' 'python-widlparser')
makedepends=('git' 'python-setuptools')
source=("bikeshed::git+https://github.com/tabatkins/bikeshed.git")
sha256sums=('SKIP')
b2sums=('SKIP')

pkgver() {
  cd "bikeshed"

  printf "%s.%s" "$(cat semver.txt)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "bikeshed"

  python setup.py build
}

package() {
  cd "bikeshed"

  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
  install -Dm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}