diff options
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 21 |
2 files changed, 33 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6572e8b69ca4 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = snake + pkgdesc = A simple lightweight terminal snake game + pkgver = 0.1.0 + pkgrel = 1 + arch = any + license = MIT + makedepends = cargo + source = https://github.com/PonasKovas/snake/archive/0.1.0.tar.gz + md5sums = 59777af83cddc1083ad9c8ac4a37749a + +pkgname = snake + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e5af9ba776c2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,21 @@ +# Maintainer: Ponas <mykolas.peteraitis@gmail.com> +pkgname=snake +pkgver=0.1.0 +pkgrel=1 +pkgdesc="A simple lightweight terminal snake game" +arch=('any') +license=('MIT') +makedepends=('cargo') +source=("https://github.com/PonasKovas/snake/archive/${pkgver}.tar.gz") +md5sums=('59777af83cddc1083ad9c8ac4a37749a') + +build () { + cd "$srcdir/$pkgname-$pkgver" + RUSTUP_TOOLCHAIN=stable \ + cargo build --release +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + install -Dm755 target/release/snake "${pkgdir}/usr/bin/snake" +}
\ No newline at end of file |