PKGBUILD 760 B

1234567891011121314151617181920212223242526272829
  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. pkgdesc='A command line tool for downloading TI calculator software from www.ticalc.org'
  14. license=('MIT')
  15. arch=('any')
  16. source=("git+https://github.com/TC01/calcpkg.git" "LICENSE")
  17. build() {
  18. cd "$srcdir/$pkgname"
  19. python2 setup.py build;
  20. }
  21. package() {
  22. install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  23. cd "$srcdir/$pkgname"
  24. mkdir usr;
  25. export PYTHONUSERBASE=$pkgdir/usr;
  26. python2 setup.py install --user;
  27. }
  28. md5sums=('SKIP' 'SKIP')