2023-08-18 17:26:20 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/rrthomas/psutils/releases/download/v{{version}}/pspdfutils-{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
versions:
|
|
|
|
github: rrthomas/psutils
|
|
|
|
dependencies:
|
2023-10-03 18:23:56 +03:00
|
|
|
python.org: ~3.11
|
2023-08-18 17:26:20 +03:00
|
|
|
github.com/rrthomas/libpaper: '*'
|
|
|
|
build:
|
|
|
|
script:
|
|
|
|
- rm -r props
|
|
|
|
- python-venv.sh {{prefix}}/bin/psbook
|
|
|
|
- python-venv.sh {{prefix}}/bin/psjoin
|
|
|
|
- python-venv.sh {{prefix}}/bin/psnup
|
|
|
|
- python-venv.sh {{prefix}}/bin/psresize
|
|
|
|
- python-venv.sh {{prefix}}/bin/psselect
|
|
|
|
- python-venv.sh {{prefix}}/bin/pstops
|
|
|
|
provides:
|
|
|
|
- bin/psbook
|
|
|
|
- bin/psjoin
|
|
|
|
- bin/psnup
|
|
|
|
- bin/psresize
|
|
|
|
- bin/psselect
|
|
|
|
- bin/pstops
|
|
|
|
test:
|
|
|
|
dependencies:
|
|
|
|
gnu.org/wget: '*'
|
|
|
|
script:
|
|
|
|
- wget https://raw.githubusercontent.com/rrthomas/psutils/e00061c21e114d80fbd5073a4509164f3799cc24/tests/test-files/psbook/3/expected.ps
|
|
|
|
- psbook expected.ps book.ps 2>&1 | grep "Wrote 4 pages"
|
|
|
|
- psnup -2 expected.ps nup.ps 2>&1 | grep "Wrote 2 pages"
|
|
|
|
- psselect -p1 expected.ps test2.ps 2>&1 | grep "Wrote 1 pages"
|
2023-10-02 03:41:57 +03:00
|
|
|
- psbook --version | grep {{version}}
|