diff options
author | talwat | 2023-08-11 13:28:30 +0200 |
---|---|---|
committer | talwat | 2023-08-11 13:28:30 +0200 |
commit | 11ee7bdf7708fe81ba283657c099c1e813595fc5 (patch) | |
tree | 771182efe5937221d3c2e5d1718918e507235394 | |
download | aur-11ee7bdf7708fe81ba283657c099c1e813595fc5.tar.gz |
bump
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e57150c86b68 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = pokeget + pkgdesc = Display pokemon sprites in your terminal. + pkgver = 1.2.0 + pkgrel = 1 + url = https://github.com/talwat/pokeget-rs + arch = x86_64 + license = MIT + makedepends = cargo + source = pokeget-1.2.0.tar.gz::https://github.com/talwat/pokeget-rs/archive/1.2.0.tar.gz + sha512sums = b7d067bd9f6ce53a581cad26a2bf012b4f258ebd409927a8a6a29180b7b917478277fc975bd453e4a9508844984d91eaabca82a63886a73043369714183a9a1c + +pkgname = pokeget diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b6d80e568f26 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Tal <talwat321@gmail.com> +pkgname=pokeget +pkgver=1.2.0 +pkgrel=1 +pkgdesc="Display pokemon sprites in your terminal." +arch=('x86_64') +url="https://github.com/talwat/pokeget-rs" +license=('MIT') +makedepends=('cargo') +source=("$pkgname-$pkgver.tar.gz::https://github.com/talwat/pokeget-rs/archive/$pkgver.tar.gz") +sha512sums=('b7d067bd9f6ce53a581cad26a2bf012b4f258ebd409927a8a6a29180b7b917478277fc975bd453e4a9508844984d91eaabca82a63886a73043369714183a9a1c') + +prepare() { + cd "pokeget-rs-$pkgver" + + export RUSTUP_TOOLCHAIN=stable + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + cd "pokeget-rs-$pkgver" + + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release --all-features +} + +package() { + cd "pokeget-rs-$pkgver" + + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" +} + |