summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f642a6c8f0a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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: