summaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPolesznyák Márk László <116908301+pml68@users.noreply.github.com>2025-03-23 02:49:57 +0100
committerGitHub <noreply@github.com>2025-03-23 02:49:57 +0100
commit3076889c00116b22f022792471253e7188c6e93e (patch)
treebff0cda7a9152e9f94d3176bbf5acaf879394f5f /PKGBUILD
parentfeat: update to Rust 2024 (diff)
parentfeat: finish `ApplyOptions` impls (diff)
downloadiced-builder-3076889c00116b22f022792471253e7188c6e93e.tar.gz
Merge pull request #7 from pml68/feat/options-backend
Options backend done (for now)
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..073c1cb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: pml68 <contact@pml68.dev>
+
+pkgname=iced-builder
+_pkgver=0.1.0
+pkgver=0.1.0.g256e3ba
+pkgrel=1
+pkgdesc='UI builder for iced, built with iced.'
+arch=(x86_64)
+url='https://github.com/pml68/iced-builder'
+license=('GPL-3.0-or-later')
+depends=(
+ gcc-libs
+ glibc
+ gtk3
+ rustfmt
+)
+makedepends=(
+ git
+ cargo
+)
+options=('!lto' '!debug')
+source=("$pkgname::git+${url}.git")
+sha256sums=('SKIP')
+
+prepare() {
+ cd "${pkgname}"
+
+ export RUSTUP_TOOLCHAIN=stable
+ cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
+}
+
+pkgver() {
+ cd "${pkgname}"
+ echo "${_pkgver}.g$(git describe --always --exclude='*')"
+}
+
+build() {
+ cd "${pkgname}"
+
+ export RUSTUP_TOOLCHAIN=stable
+ export CARGO_TARGET_DIR=target
+ cargo build --frozen --release
+}
+
+package() {
+ cd "${pkgname}"
+
+ install -Dm755 "target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
+}