summaryrefslogtreecommitdiff
path: root/pcr/darcsver/PKGBUILD
blob: c18acb5fc7af5b977780adfe745d2c60b7ee7fe2 (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
# Maintainer (AUR): Andreas B. Wagner <AndreasBWagner@pointfree.net>
# Maintainer (AUR): Nicolas Pouillard <nicolas.pouillard@gmail.com>
# Contributor (AUR): Peter Simons <simons@cryp.to>

# parabola changes and rationale:
#  - adding license to package
#  - fixed source url

pkgname=darcsver
pkgver=1.7.4
pkgrel=2.1
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=( https://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
}