diff options
author | Adrian Groh | 2023-09-25 17:39:41 +0200 |
---|---|---|
committer | Adrian Groh | 2023-09-25 17:39:41 +0200 |
commit | 6e551654a8603d90dc5b4a2f43e5263e185a85be (patch) | |
tree | e1f19a279b1acc11143851693330567b7ee38ce9 | |
download | aur-6e551654a8603d90dc5b4a2f43e5263e185a85be.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 31 |
3 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..bb4f3529ffa5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = dioxus-cli + pkgdesc = CLI tool for developing, testing, and publishing Dioxus apps + pkgver = 0.4.1 + pkgrel = 1 + url = https://github.com/DioxusLabs/dioxus/ + arch = i686 + arch = pentium4 + arch = x86_64 + arch = arm + arch = armv7h + arch = armv6h + arch = aarch64 + license = MIT + license = Apache + makedepends = cargo + provides = dx + source = dioxus-cli-0.4.1.tar.gz::https://static.crates.io/crates/dioxus-cli/dioxus-cli-0.4.1.crate + b2sums = 55c0a9371a08370c24cc0af596d69943707fc7c356c570cbb83e2110ceb59c6fc6bdf6e50bb87f8fba367396ad55f4b2508e0e07cb4687c63675fb395bc5fe8f + +pkgname = dioxus-cli diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..c39d6ef76f9b --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +pkg +src +*.gz +*.zst diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..04773d7cc8b1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Adrian Groh <adrian[dot]groh[at]t[dash]online[dot]de> +pkgname=dioxus-cli +pkgver=0.4.1 +pkgrel=1 +pkgdesc="CLI tool for developing, testing, and publishing Dioxus apps" +url="https://github.com/DioxusLabs/dioxus/" +license=("MIT" "Apache") +arch=("i686" "pentium4" "x86_64" "arm" "armv7h" "armv6h" "aarch64") +depends=() +makedepends=("cargo") +provides=("dx") +conflicts=() +source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate") +b2sums=('55c0a9371a08370c24cc0af596d69943707fc7c356c570cbb83e2110ceb59c6fc6bdf6e50bb87f8fba367396ad55f4b2508e0e07cb4687c63675fb395bc5fe8f') + +prepare() { + cd "$pkgname-$pkgver" + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + cd "$pkgname-$pkgver" + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release +} + +package() { + cd "$pkgname-$pkgver" + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/dx" +} |