PKGBUILD 784 B

12345678910111213141516171819202122232425262728293031
  1. pkgname=wxwabbitemu
  2. pkgver=r
  3. pkgver() {
  4. cd "$srcdir/$pkgname";
  5. printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  6. }
  7. pkgrel=2
  8. url='https://github.com/alberthdev/wxwabbitemu'
  9. pkgdesc="a TI-8x emulator based on Wabbitemu"
  10. arch=('any')
  11. source=("git+https://github.com/alberthdev/wxwabbitemu.git" "LICENSE")
  12. md5sums=('SKIP' 'SKIP')
  13. depends=('wxgtk')
  14. makedepends=('git' 'cmake')
  15. license=('custom')
  16. prepare() {
  17. mkdir -p "$srcdir/build";
  18. }
  19. build() {
  20. cd "$srcdir/build";
  21. cmake "$srcdir/$pkgname" -DCMAKE_INSTALL_PREFIX:PATH=$pkgdir;
  22. make;
  23. }
  24. package() {
  25. install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  26. cd "$srcdir/build";
  27. make install
  28. mkdir -p "$pkgdir/usr/bin"
  29. mv "$pkgdir/bin/wxWabbitemu" "$pkgdir/usr/bin"
  30. rmdir "$pkgdir/bin"
  31. }