mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
+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:
parent
da013c762c
commit
54b5ba8c63
38
projects/sourceforge.net/xmlstar/package.yml
Normal file
38
projects/sourceforge.net/xmlstar/package.yml
Normal 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'
|
13
projects/sourceforge.net/xmlstar/test.xml
Normal file
13
projects/sourceforge.net/xmlstar/test.xml
Normal 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>
|
Loading…
Reference in a new issue