Create The AUR package 😆

This commit is contained in:
Anas Elgarhy 2022-10-03 23:41:59 +02:00
parent b0da831456
commit a90b4070f1
4 changed files with 55 additions and 0 deletions

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "archpackage/aarty"]
path = archpackage/aarty
url = ssh://aur@aur.archlinux.org/aarty.git

14
archpackage/.SRCINFO Normal file
View file

@ -0,0 +1,14 @@
pkgbase = aarty
pkgdesc = A simple CLI tool to convert the images to ASCII art 🦀💙
pkgver = 0.1.0
pkgrel = 1
url = https://github.com/anas-elgarhy/aarty
arch = x86_64
license = MIT
makedepends = cargo
provides = aarty
replaces = aarty
source = aarty-0.1.0.tar.gz::https://static.crates.io/crates/aarty/aarty-0.1.0.crate
sha256sums = 0bdf82de5b48760e9dcaee0f474ac8cdc333969c60734c4aaa79bc33930a755f
pkgname = aarty

37
archpackage/PKGBUILD Normal file
View file

@ -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')

1
archpackage/aarty Submodule

@ -0,0 +1 @@
Subproject commit 85961578c29cf4d7b1e5b6ed06c843404def002b