mirror of
https://github.com/ivabus/pantry
synced 2024-11-25 18:05:07 +03:00
parent
bdfebb7932
commit
05d70ebd26
1 changed files with 42 additions and 0 deletions
42
projects/raccoin.org/package.yml
Normal file
42
projects/raccoin.org/package.yml
Normal file
|
@ -0,0 +1,42 @@
|
|||
distributable:
|
||||
url: https://github.com/bjorn/raccoin/archive/refs/tags/v{{ version }}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
provides:
|
||||
- bin/raccoin
|
||||
|
||||
dependencies:
|
||||
gnu.org/libiconv: ^1
|
||||
openssl.org: ^1.1
|
||||
|
||||
versions:
|
||||
github: bjorn/raccoin
|
||||
strip: /v/
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
rust-lang.org: '>=1.56'
|
||||
rust-lang.org/cargo: '*'
|
||||
linux:
|
||||
gnu.org/make: '*'
|
||||
script:
|
||||
# raccoin doesn't provide any testability without
|
||||
# a UI, so we add some
|
||||
- run: |
|
||||
sed -i.bak \
|
||||
-e'1a\
|
||||
const VERSION: &str = "{{version}}";' \
|
||||
-e'/let portfolio_file: PathBuf = portfolio_file.into();/i\
|
||||
if portfolio_file == "--version" {\
|
||||
println!("raccoin v{VERSION}");\
|
||||
return Ok(());\
|
||||
}' \
|
||||
main.rs
|
||||
rm main.rs.bak
|
||||
working-directory: src
|
||||
- cargo install --locked --path . --root {{prefix}}
|
||||
env:
|
||||
linux:
|
||||
LD: clang
|
||||
|
||||
test: test "$(raccoin --version)" = "raccoin v{{version}}"
|
Loading…
Reference in a new issue