+sourceforge.net/xmlstar (#5543)

* new file:   projects/sourceforge.net/xmlstar/package.yml
	new file:   projects/sourceforge.net/xmlstar/test.xml

* +gcc
This commit is contained in:
Andrew 2024-03-11 20:16:12 +02:00 committed by GitHub
parent da013c762c
commit 54b5ba8c63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,38 @@
distributable:
url: https://downloads.sourceforge.net/project/xmlstar/xmlstarlet/{{version}}/xmlstarlet-{{version}}.tar.gz
strip-components: 1
versions:
url: https://sourceforge.net/projects/xmlstar/files/xmlstarlet/
match: /xmlstarlet-\d+\.\d+\.\d+\.tar\.gz/
strip:
- /^xmlstarlet-/
- /\.tar\.gz/
dependencies:
gnome.org/libxslt: ^1
build:
dependencies:
linux:
gnu.org/gcc: '*'
script:
- ./configure $ARGS
- make --jobs {{ hw.concurrency }}
- make --jobs {{ hw.concurrency }} install
- run: ln -s xml xmlstarlet
working-directory: ${{prefix}}/bin
env:
ARGS:
- --disable-dependency-tracking
- --prefix={{prefix}}
- --mandir={{prefix}}/share/man
provides:
- bin/xml
- bin/xmlstarlet
test:
- xmlstarlet --version | grep {{version}}
- xml --help
- xml validate test.xml | grep 'valid'

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="note">
<xs:complexType>
<xs:sequence>
<xs:element name="to" type="xs:string"/>
<xs:element name="from" type="xs:string"/>
<xs:element name="heading" type="xs:string"/>
<xs:element name="body" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>