2024-03-23 14:32:32 +00:00
|
|
|
# Maintainer:
|
|
|
|
|
2024-12-20 16:12:11 +00:00
|
|
|
: ${CARGO_HOME:=$SRCDEST/cargo-home}
|
|
|
|
|
|
|
|
_pkgname="vdhcoapp-filepicker"
|
2024-05-30 23:03:32 +00:00
|
|
|
pkgname="$_pkgname"
|
2024-03-23 14:32:32 +00:00
|
|
|
pkgver=1.0.1
|
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Filepicker for VDHCoApp" # added in 2.0.16
|
|
|
|
url="https://github.com/paulrouget/static-filepicker"
|
2024-03-28 04:07:04 +00:00
|
|
|
license=('GPL-2.0-or-later')
|
2024-03-23 14:32:32 +00:00
|
|
|
arch=('x86_64')
|
|
|
|
|
|
|
|
depends=(
|
|
|
|
'gtk3'
|
|
|
|
)
|
|
|
|
makedepends=(
|
|
|
|
'cargo'
|
|
|
|
'git'
|
|
|
|
)
|
|
|
|
|
|
|
|
_pkgsrc="$_pkgname"
|
|
|
|
source=("$_pkgsrc"::"git+$url.git#tag=v$pkgver")
|
|
|
|
sha256sums=('SKIP')
|
|
|
|
|
2024-03-28 04:07:04 +00:00
|
|
|
_cargo_env() {
|
2024-12-20 16:12:11 +00:00
|
|
|
export CARGO_HOME
|
|
|
|
export RUSTUP_TOOLCHAIN=stable
|
2024-03-28 04:07:04 +00:00
|
|
|
export CARGO_TARGET_DIR=target
|
|
|
|
}
|
|
|
|
|
2024-03-23 14:32:32 +00:00
|
|
|
prepare() {
|
2024-03-28 04:07:04 +00:00
|
|
|
_cargo_env
|
|
|
|
|
2024-03-23 14:32:32 +00:00
|
|
|
cd "$_pkgsrc"
|
|
|
|
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2024-03-28 04:07:04 +00:00
|
|
|
_cargo_env
|
|
|
|
|
2024-03-23 14:32:32 +00:00
|
|
|
cd "$_pkgsrc"
|
|
|
|
cargo build --frozen --release --all-features
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2024-12-20 16:12:11 +00:00
|
|
|
_cargo_env
|
2024-03-23 14:32:32 +00:00
|
|
|
install -Dm755 "$_pkgsrc/$CARGO_TARGET_DIR/release/filepicker" -t "$pkgdir/usr/bin/"
|
|
|
|
}
|