PKGBUILD 852 B

123456789101112131415161718192021222324252627282930
  1. # Maintainer: Nathaniel van Diepen <[email protected]>
  2. pkgname=calcpkg
  3. pkgver=20131230
  4. url='https://github.com/TC01/calcpkg'
  5. pkgver() {
  6. cd "$srcdir/$pkgname"
  7. if git describe --tags > /dev/null 2>&1;then
  8. git describe --tags --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g';
  9. else
  10. date +%Y%m%d;
  11. fi;}
  12. pkgrel=4
  13. makedepends=('git' 'python2' 'python2-setuptools')
  14. pkgdesc='A command line tool for downloading TI calculator software from www.ticalc.org'
  15. license=('MIT')
  16. arch=('any')
  17. source=("git+https://github.com/TC01/calcpkg.git" "LICENSE")
  18. build() {
  19. cd "$srcdir/$pkgname"
  20. python2 setup.py build;
  21. }
  22. package() {
  23. mkdir -p "$pkgdir/usr/lib/python2.7/site-packages";
  24. install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  25. export PYTHONUSERBASE=$pkgdir/usr;
  26. cd "$srcdir/$pkgname"
  27. python2 setup.py install --user;
  28. }
  29. md5sums=('SKIP' 'SKIP')