summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aeb7a1216bcf0ff114e419841800edad9c5c9f93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: Denys Vitali <denys@denv.it>
pkgname=pong
pkgver=2.02
pkgrel=2
pkgdesc="pong is not ping. pong is CLI game. "
reponame=pong-command
arch=('any')
url="https://github.com/kurehajime/pong-command"
license=('MIT')
groups=()
makedepends=('git')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(${pkgname}::"https://github.com/kurehajime/pong-command/archive/${pkgver}.tar.gz")
md5sums=('SKIP')


build() {
  cd "$srcdir/${reponame}-${pkgver}/"
  go get github.com/nsf/termbox-go
  go build -o "$srcdir/${reponame}-${pkgver}/pong_out" -i pong/*
}


package() {
  install -m755 -d "${pkgdir}/usr/bin"
  cp "${srcdir}/${reponame}-${pkgver}/pong_out" "${pkgdir}/usr/bin/pong"
}