summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f642a6c8f0a36d61388463dbe68e86cde753634e (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
35
36
37
38
39
#Maintainer: "Yannick LM <yannicklm1337 AT gmail DOT com>"

pkgname=pycp
pkgver="6.1.3"
pkgrel=1
pkgdesc="cp and mv with a progressbar"
url="http://github.com/yannicklm/pycp"
arch=('any')
license=('MIT')
depends=('python2')
makedepends=('python2' 'help2man')
source=("http://pypi.python.org/packages/source/p/pycp/pycp-${pkgver}.tar.gz")
md5sums=('df23252879d23ad22b9ab3e51af6e538')


conflicts=('pycp-git')

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

package() {
  cd ${srcdir}/pycp-${pkgver}
  python2 setup.py install --root=$pkgdir/ --optimize=1

  # man pages
  PYTHONPATH=. help2man --no-info --output pycp.1 bin/pycp
  PYTHONPATH=. help2man --no-info --output pymv.1 bin/pymv
  mkdir -p $pkgdir/usr/share/man/man1
  install pycp.1 $pkgdir/usr/share/man/man1/pycp.1
  install pymv.1 $pkgdir/usr/share/man/man1/pymv.1

  # license
  mkdir -p $pkgdir/usr/share/licenses/pycp
  install COPYING.txt $pkgdir/usr/share/licenses/pycp/COPYING
}

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