diff options
author | Pierre Chevalier | 2017-03-07 03:06:22 +0000 |
---|---|---|
committer | Pierre Chevalier | 2017-03-07 03:06:22 +0000 |
commit | e0ec90695af7fe6a56c9b283dddf252526eee47e (patch) | |
tree | 9081f3b4390239e661fb50723d05613caf09b7f7 | |
download | aur-e0ec90695af7fe6a56c9b283dddf252526eee47e.tar.gz |
Create aur package for 2048-rs from crates.io
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | PKGBUILD | 23 |
3 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..00f233d33997 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = 2048-rs + pkgdesc = A cli implementation of the popular 2048 game written in rust + pkgver = 0.4.0 + pkgrel = 1 + url = https://github.com/pierrechevalier83/2048 + arch = i686 + arch = x86_64 + license = MIT + makedepends = cargo + source = 2048-rs-0.4.0.tar.gz::https://crates.io/api/v1/crates/game-2048/0.4.0/download + sha256sums = 73ab1f3ffa49e5149774358ffd9f0ad0bec0e6f18644f72436650dc53226e0f7 + +pkgname = 2048-rs + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..0b0559b37c04 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +pkg +src +2048-rs* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ce2d542e4204 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +#Maintainer: Pierre Chevalier <pierrechevalier83@gmail.com> + +pkgname=2048-rs +_pkgname=game-2048 +pkgver=0.4.0 +pkgrel=1 +pkgdesc="A cli implementation of the popular 2048 game written in rust" +url="https://github.com/pierrechevalier83/2048" +makedepends=('cargo') +arch=('i686' 'x86_64') +license=('MIT') +source=("$pkgname-$pkgver.tar.gz::https://crates.io/api/v1/crates/$_pkgname/$pkgver/download") +sha256sums=('73ab1f3ffa49e5149774358ffd9f0ad0bec0e6f18644f72436650dc53226e0f7') + +build() { + cd "$_pkgname-$pkgver" + cargo build --release +} + +package() { + cd "$_pkgname-$pkgver" + install -Dm755 target/release/game-2048 "$pkgdir/usr/bin/2048-rs" +} |