summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: faaef9b8c76a05bc5c9d7892ebd4a8d0461e1861 (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
# Maintainer: Sebastien Leduc <sebastien@sleduc.fr>
# Contributor: ponsfoot <cabezon dot hashimoto at gmail dot com>

pkgname=python2-paver
pkgver=1.3.4
pkgrel=1
pkgdesc="Build, Distribute and Deploy Python Projects"
arch=('any')
url="https://github.com/paver/paver"
license=('BSD')
depends=('python2')
source=("$pkgname-$pkgver.tar.gz::https://github.com/paver/paver/archive/Paver-$pkgver.tar.gz")
md5sums=('df1eae12c15f81c436232846378b2784')

build() {
  cd paver-Paver-$pkgver
  python setup.py build
}

package() {
  cd paver-Paver-$pkgver
  python2 setup.py install --root="$pkgdir" --optimize=1
  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
  # fix python3 conflict
  for _f in "$pkgdir"/usr/bin/*; do
      mv -v "$_f" "${_f}2"
  done
}