pantry/projects/x.org/xt/package.yml
2023-10-01 21:27:27 -04:00

42 lines
879 B
YAML

distributable:
url: https://www.x.org/archive/individual/lib/libXt-{{version}}.tar.gz
strip-components: 1
versions:
url: https://www.x.org/archive/individual/lib/
match: /libXt-\d+\.\d+\.\d+.tar.gz/
strip:
- /libXt-/
- /.tar.gz/
dependencies:
x.org/ice: '*'
x.org/sm: '*'
x.org/x11: '*'
build:
dependencies:
freedesktop.org/pkg-config: ~0.29
script: |
./configure \
--prefix="{{prefix}}" \
--sysconfdir="$SHELF"/etc \
--localstatedir="$SHELF"/var \
--with-appdefaultdir="$SHELF"/etc/X11/app-defaults
make --jobs {{ hw.concurrency }} install
env:
SHELF: ${{pkgx.prefix}}/x.org
test:
script: |
mv $FIXTURE test.c
cc test.c
./a.out
fixture: |
#include "X11/IntrinsicP.h"
#include "X11/CoreP.h"
int main(int argc, char* argv[]) {
CoreClassPart *range;
return 0;
}