summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c9bb5f4b6a226756ce9b0830446e24c70d1eea45 (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
# Maintainer: Nils Werner <nils.werner@gmail.com>

pkgbase=python-confight
pkgname=(python-confight)
pkgver=1.3.1
pkgrel=2
pkgdesc='One simple way of parsing configs.'
arch=('any')
url="https://github.com/Avature/confight"
license=('MIT')
makedepends=('python-setuptools')
source=(
  "https://pypi.io/packages/source/c/confight/confight-$pkgver.tar.gz"
  "LICENSE.txt"
)
md5sums=(
  '286c815e2ff36d1c74382e464c5d2d6d'
  'b62f1a403a498f2bc2240d7e85eceafe'
)

build() {
  cd "$srcdir"/confight-$pkgver
  python setup.py build
}

check() {
  cd "$srcdir"/confight-$pkgver
  python setup.py test
}

package() {
  depends=('python')

  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
  cd confight-$pkgver
  python setup.py install --root="$pkgdir/" --optimize=1
}

# vim:set ts=2 sw=2 et: