+github.com/moretension/duti (#3950)

* +github.com/moretension/duti

* +github.com/moretension/duti fix test

---------

Co-authored-by: James Reynolds <magnsuviri@me.com>
This commit is contained in:
James Reynolds 2023-11-03 16:54:32 -06:00 committed by GitHub
parent e63ecd1cae
commit 9bc3a73c01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,36 @@
distributable:
url: https://github.com/moretension/duti/archive/refs/tags/duti-{{version}}.tar.gz
strip-components: 1
versions:
github: moretension/duti/tags
strip: /duti-/
platforms:
- darwin
build:
dependencies:
gnu.org/autoconf: '*'
script:
- run: |
curl -L https://github.com/moretension/duti/commit/825b5e6a92770611b000ebdd6e3d3ef8f47f1c47.patch?full_index=1 | patch -p1 # 10.14
curl -L https://github.com/moretension/duti/commit/4a1f54faf29af4f125134aef3a47cfe05c7755ff.patch?full_index=1 | patch -p1 # 10.15
curl -L https://github.com/moretension/duti/commit/ec195e261f8a48a1a18e262a2b1f0ef26a0bc1ee.patch?full_index=1 | patch -p1 # 12
curl -L https://github.com/moretension/duti/commit/54a1539b23ac764b32679bcada5659fbad483ecc.patch?full_index=1 | patch -p1 # 13
curl -L https://github.com/moretension/duti/commit/8d31a2f75fefb61381dc7731cf7ecac9237ee64d.patch?full_index=1 | patch -p1
if: <=1.5.4
- autoreconf -i
- ./configure $ARGS
- make
- make --jobs {{ hw.concurrency }} install
env:
ARGS:
- --prefix="{{prefix}}"
provides:
- bin/duti
test:
script: |
duti -l public.text | grep com.apple.TextEdit