2020-11-19 08:47:47 +00:00
|
|
|
# Description: command-line tool and library for generating regular expressions from user-provided test cases
|
|
|
|
# URL: https://github.com/pemistahl/grex
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
# Depends on: rust
|
|
|
|
|
|
|
|
name=grex
|
2024-03-06 20:24:49 +01:00
|
|
|
version=1.4.5
|
2020-11-19 08:47:47 +00:00
|
|
|
release=1
|
|
|
|
source=(https://github.com/pemistahl/grex/archive/v$version/$name-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
|
2022-10-22 14:29:27 +02:00
|
|
|
[[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust
|
|
|
|
|
|
|
|
cargo build --release --manifest-path $name-$version/Cargo.toml
|
2020-11-19 08:47:47 +00:00
|
|
|
|
2021-03-29 20:20:31 +00:00
|
|
|
install -Dt $PKG/usr/bin $name-$version/target/release/$name
|
2020-11-19 08:47:47 +00:00
|
|
|
}
|