summaryrefslogtreecommitdiff
path: root/pcr/setuptools_darcs/PKGBUILD
blob: 7fbbdcaa85985b148488ba27a94062f4d8b05e88 (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
# Contributor: Peter Simons <simons@cryp.to>
# Contributor: Nicolas Pouillard <nicolas.pouillard@gmail.com>
pkgname=setuptools_darcs
pkgver=1.2.11
pkgrel=3
pkgdesc="Python setuptools plugin for darcs"
arch=('any')
url='http://pypi.python.org/pypi/setuptools_darcs'
license=('BSD')
depends=('python2')
makedepends=('setuptools' 'darcsver')
source=( http://pypi.python.org/packages/source/s/$pkgname/$pkgname-$pkgver.tar.gz )
md5sums=('79451a8e77b9692861a655e53df094f0')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  python2 setup.py build
}

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

package() {
  cd "$srcdir/$pkgname-$pkgver"
  python2 setup.py install --root="$pkgdir"
  install -Dm644 PKG-INFO $pkgdir/usr/share/licenses/$pkgname/LICENSE
}