summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules/python-configobj/PKGBUILD
blob: df251f7c55e8600969143557c4ea40980562a848 (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
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
# Contributor: Stefan Husmann  <stefan-husmann@t-online.de>
# Contributor: Manuel "ekerazha" C. (www.ekerazha.com)

pkgbase=python-configobj
pkgname=('python-configobj' 'python2-configobj')
pkgver=5.0.6
pkgrel=4
pkgdesc='Simple but powerful config file reader and writer for Python'
arch=('any')
url='https://github.com/DiffSK/configobj'
license=('BSD')
makedepends=('python' 'python2')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/DiffSK/configobj/archive/v$pkgver.tar.gz")
sha256sums=('2e140354efcca6f558ff9ee941b435ae09a617bc071797bef62c8d6ed2033d5e')

package_python-configobj() {
  depends=('python-six')
  cd "configobj-$pkgver"

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

package_python2-configobj() {
  depends=('python2-six')
  cd "configobj-$pkgver"

  python2 setup.py install --root="$pkgdir" --optimize=1
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

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