diff options
author | Denys Vitali | 2018-04-02 17:47:59 +0200 |
---|---|---|
committer | Denys Vitali | 2018-04-02 17:47:59 +0200 |
commit | 2bba0180a5e24428f2f7670783867bd196d0a5b0 (patch) | |
tree | 57b43ef9fd20326a4f3d88539e9506ff9eb49df5 /PKGBUILD | |
download | aur-2bba0180a5e24428f2f7670783867bd196d0a5b0.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0715c4fa4e8b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Denys Vitali <denys@denv.it> +pkgname=pong +pkgver=2.01 +pkgrel=1 +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 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" +} |