mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
x.org/libSM (#3335)
* new file: projects/x.org/libSM/package.yml new file: projects/x.org/libSM/test.c * modified: projects/x.org/libSM/package.yml
This commit is contained in:
parent
ba67b4dc50
commit
39cf18b517
2 changed files with 43 additions and 0 deletions
37
projects/x.org/libSM/package.yml
Normal file
37
projects/x.org/libSM/package.yml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
distributable:
|
||||||
|
url: https://www.x.org/archive/individual/lib/libSM-{{version}}.tar.xz
|
||||||
|
strip-components: 1
|
||||||
|
versions:
|
||||||
|
url: https://www.x.org/archive/individual/lib/
|
||||||
|
match: /libSM-\d+\.\d+\.\d+\.tar\.xz/
|
||||||
|
strip:
|
||||||
|
- /^libSM-/
|
||||||
|
- /\.tar\.xz/
|
||||||
|
dependencies:
|
||||||
|
x.org/ice: '*'
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
tea.xyz/gx/make: '*'
|
||||||
|
freedesktop.org/pkg-config: '*'
|
||||||
|
x.org/xtrans: '*'
|
||||||
|
script:
|
||||||
|
- ./configure $ARGS
|
||||||
|
- make --jobs {{ hw.concurrency }}
|
||||||
|
- make --jobs {{ hw.concurrency }} install
|
||||||
|
env:
|
||||||
|
ARGS:
|
||||||
|
- --prefix={{prefix}}
|
||||||
|
- --sysconfdir={{prefix}}/etc
|
||||||
|
- --localstatedir={{prefix}}/var
|
||||||
|
- --disable-dependency-tracking
|
||||||
|
- --disable-silent-rules
|
||||||
|
- --enable-docs=no
|
||||||
|
test:
|
||||||
|
dependencies:
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
freedesktop.org/pkg-config: '*'
|
||||||
|
script:
|
||||||
|
- cc test.c -o test
|
||||||
|
- ./test
|
||||||
|
- pkg-config --modversion sm | grep {{version}}
|
6
projects/x.org/libSM/test.c
Normal file
6
projects/x.org/libSM/test.c
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#include "X11/SM/SMlib.h"
|
||||||
|
|
||||||
|
int main(int argc, char* argv[]) {
|
||||||
|
SmProp prop;
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in a new issue