handlr: fixed build
This commit is contained in:
parent
4693596df3
commit
c60dea0080
@ -1,6 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF3x4J9NLQb0XBSNuP5zVlP/ET46HUZWGCq/TaEth8tv1dAAje+z63dRiE0LhsUQbiJxztWxkuaxdOYhI4Y01TFAg=
|
||||
SHA256 (Pkgfile) = aa87657d3f4672c2040b811531bcfb0c738b45fa88de448c69538cbbee3ee0ad
|
||||
RWSagIOpLGJF3185CneCh8YXFlHUfbfBPrnbppEjaRGAeFh3A6Q00Q+KzFD2dtH21Ni55Uex2sv04wtHsK9a8TR4N1TpegBj+QU=
|
||||
SHA256 (Pkgfile) = 24231a0d69d11855a5f76084a109cfd00d58e0f453444f9339cc5d0809710809
|
||||
SHA256 (.footprint) = dc2db921b47a3d580f3fb58345bac4c9b0267c93ee81f23d7a827df71fead35e
|
||||
SHA256 (handlr-0.8.2.tar.gz) = 3860791c383dbe39595dccc1239daf2d38ffda1d1285cbc6169ea0fd5b2e4d1d
|
||||
SHA256 (xdg-open.sh) = 21fae4188078463026d6d30bda53483c3e27a1915b1f4a8cb1ae0437d4aca87e
|
||||
|
@ -10,14 +10,16 @@ source=(https://github.com/Anomalocaridid/handlr-regex/archive/v$version/$name-$
|
||||
xdg-open.sh)
|
||||
|
||||
build() {
|
||||
prt-get isinst zsh && install -Dm644 $SRC/$name-regex-$version/completions/_handlr \
|
||||
$PKG/usr/share/zsh/site-functions/_handlr
|
||||
|
||||
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
|
||||
[[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust
|
||||
|
||||
cargo build --release --manifest-path $name-regex-$version/Cargo.toml
|
||||
|
||||
prt-get isinst bash-completion && install -Dm644 $SRC/$name-regex-$version/assets/completions/handlr \
|
||||
$PKG/usr/share/bash-completion/completions/handlr
|
||||
prt-get isinst zsh && install -Dm644 $SRC/$name-regex-$version/assets/completions/_handlr \
|
||||
$PKG/usr/share/zsh/site-functions/_handlr
|
||||
|
||||
install -Dt $PKG/usr/bin $name-regex-$version/target/release/$name
|
||||
install -Dt $PKG/usr/bin $name-regex-$version/target/release/$name
|
||||
install -Dm755 $SRC/xdg-open.sh $PKG/usr/local/bin/xdg-open
|
||||
|
Loading…
x
Reference in New Issue
Block a user