PKGBUILD 837 B

1234567891011121314151617181920212223242526272829303132
  1. pkgname=cedev-llvm
  2. pkgver=r
  3. pkgrel=3
  4. url='https://github.com/CE-Programming/toolchain'
  5. pkgdesc="Toolchain and libraries for C programming on the TI-84 Plus CE / TI-83 Premium CE calculators"
  6. arch=('any')
  7. source=("git+https://github.com/CE-Programming/toolchain.git#branch=llvm")
  8. md5sums=('SKIP')
  9. depends=('wine' 'ez80-clang')
  10. makedepends=('git')
  11. license=('custom')
  12. provides=('cedev')
  13. conflicts=('cedev')
  14. pkgver() {
  15. cd "$srcdir/toolchain";
  16. printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  17. }
  18. prepare(){
  19. cd "$srcdir/toolchain";
  20. git submodule update --init --recursive;
  21. }
  22. build(){
  23. PATH="$PATH:$srcdir"
  24. cd "$srcdir/toolchain";
  25. make;
  26. }
  27. package() {
  28. cd "$srcdir/toolchain";
  29. install -Dm644 license "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  30. mkdir -p "$pkgdir/opt";
  31. make install PREFIX="$pkgdir/opt";
  32. }