summaryrefslogtreecommitdiff
path: root/pcr/darcsver/PKGBUILD
blob: cd6ad45d4a7f73027ac675a1d4cdcfd16c268bcf (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
# Maintainer (Arch): Andreas B. Wagner <AndreasBWagner@pointfree.net>
# Maintainer (Arch): Nicolas Pouillard <nicolas.pouillard@gmail.com>
# Contributor (Arch): Peter Simons <simons@cryp.to>
pkgname=darcsver
pkgver=1.7.4
pkgrel=2
pkgdesc="generate a version number from darcs history"
arch=('any')
url='http://allmydata.org/trac/darcsver'
license=('BSD')
depends=('python2')
makedepends=('python2-mock' 'python2-distribute')
source=( http://pypi.python.org/packages/source/d/$pkgname/$pkgname-$pkgver.tar.gz )
md5sums=('e38aecd1343ab8447888a479ab12cb59')

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

package(){
  cd "$srcdir/$pkgname-$pkgver"
  python2 setup.py install --root="$pkgdir"

  install -Dm644 darcsver.egg-info/PKG-INFO $pkgdir/usr/share/licenses/$pkgname/LICENSE
}