summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAnas Elgarhy2022-10-03 23:38:10 +0200
committerAnas Elgarhy2022-10-03 23:38:10 +0200
commit85961578c29cf4d7b1e5b6ed06c843404def002b (patch)
tree23f6835b513e16418e2fde503d8284a479b2d3c7 /PKGBUILD
downloadaur-85961578c29cf4d7b1e5b6ed06c843404def002b.tar.gz
Init yoo 🥰
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..889ae89e2f49
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Anas Elgarhy <anas.elgarhy.dev@gmail.com>
+pkgname=aarty
+pkgver=0.1.0
+pkgrel=1
+epoch=
+pkgdesc="A simple CLI tool to convert the images to ASCII art 🦀💙"
+arch=(x86_64)
+url="https://github.com/anas-elgarhy/aarty"
+license=('MIT')
+makedepends=(cargo)
+provides=(aarty)
+conflicts=()
+replaces=(aarty)
+install=
+changelog=
+source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
+noextract=()
+
+prepare() {
+ cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+ export RUSTUP_TOOLCHAIN=stable
+ export CARGO_TARGET_DIR=target
+ cargo build --frozen --release --all-features
+}
+
+check() {
+ export RUSTUP_TOOLCHAIN=stable
+ cargo test --frozen --all-features
+}
+
+package() {
+ sudo install -Dm0755 -t "/usr/bin/" "target/release/$pkgname"
+}
+sha256sums=('0bdf82de5b48760e9dcaee0f474ac8cdc333969c60734c4aaa79bc33930a755f')