You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PKGBUILD 647B

12345678910111213141516171819202122232425262728
  1. # Maintainer: John Jenkins <twodopeshaggy@gmail.com>
  2. pkgname=nes-git
  3. pkgver=r167.9c09567
  4. pkgrel=1
  5. pkgdesc="NES emulator written in Go."
  6. arch=('any')
  7. url="https://github.com/fogleman/nes"
  8. license=('MIT')
  9. makedepends=('go' 'git' 'mercurial')
  10. options=('!strip' '!emptydirs')
  11. source=($pkgname::git+https://github.com/fogleman/nes.git)
  12. md5sums=('SKIP')
  13. _gourl=github.com/fogleman/nes
  14. pkgver() {
  15. cd $srcdir/$pkgname
  16. printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  17. }
  18. build() {
  19. export GOPATH=$srcdir
  20. go get $_gourl
  21. }
  22. package() {
  23. mkdir -p "$pkgdir/usr/bin"
  24. install -p -m755 "$srcdir/bin/"* "$pkgdir/usr/bin"
  25. }