summaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-06-20 01:39:33 +0200
committerpml68 <contact@pml68.dev>2025-06-20 01:39:38 +0200
commit0ade9914530f5cab82c62582d1ab535298d8f7c9 (patch)
tree64e43afeb6e6605bca659353f3369f75b01c9591 /PKGBUILD
parentci: separate `Lint` and `Test` workflows (diff)
downloadiced-builder-0ade9914530f5cab82c62582d1ab535298d8f7c9.tar.gz
feat(PKGBUILD): add `check` for tests [skip ci]
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD17
1 files changed, 13 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ecddb41..d98445f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: pml68 <contact@pml68.dev>
pkgname=iced-builder
-pkgver=0.1.0.r115.g77b2e89
+pkgver=0.1.0.r174.g7398f64
pkgrel=1
pkgdesc='UI builder for iced, built with iced.'
arch=(x86_64)
@@ -10,6 +10,7 @@ license=('GPL-3.0-or-later')
depends=(
gcc-libs
glibc
+ openssl
rustfmt
)
makedepends=(
@@ -32,9 +33,9 @@ prepare() {
pkgver() {
cd "${pkgname}"
printf "%s.r%s.g%s" \
- $(cargo pkgid | cut -d@ -f2) \
- $(git rev-list --count HEAD) \
- $(git rev-parse --short HEAD)
+ "$(cargo pkgid | cut -d@ -f2)" \
+ "$(git rev-list --count HEAD)" \
+ "$(git rev-parse --short HEAD)"
}
build() {
@@ -45,6 +46,14 @@ build() {
cargo build --frozen --release
}
+check() {
+ cd "${pkgname}"
+
+ export RUSTUP_TOOLCHAIN=stable
+ export CARGO_TARGET_DIR=target
+ cargo test --frozen --release
+}
+
package() {
cd "${pkgname}"