Skip to content

Commit

Permalink
Tomasz/libspatialindex (#14)
Browse files Browse the repository at this point in the history
* added libspatialindex package

* Update gh actions to build new package
  • Loading branch information
tomasz-h2o authored Jun 19, 2024
1 parent 58bfb17 commit 06e243d
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ jobs:
run: |
docker run --privileged --rm -v $(pwd):/work cgr.dev/chainguard/melange build --arch=x86_64 poppler.yaml
docker run --privileged --rm -v $(pwd)/packages:/work/packages -v $(pwd)/font-liberation1.yaml:/work/font-liberation1.yaml cgr.dev/chainguard/melange build --arch=x86_64 font-liberation1.yaml
docker run --privileged --rm -v $(pwd)/packages:/work/packages -v $(pwd)/libspatialindex.yaml:/work/libspatialindex.yaml cgr.dev/chainguard/melange build --arch=x86_64 libspatialindex.yaml
1 change: 1 addition & 0 deletions .github/workflows/push-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
run: |
docker run --privileged --rm -v $(pwd):/work cgr.dev/chainguard/melange build --signing-key melange.rsa --arch=x86_64 poppler.yaml
docker run --privileged --rm -v $(pwd)/packages:/work/packages -v $(pwd)/font-liberation1.yaml:/work/font-liberation1.yaml -v $(pwd)/melange.rsa:/work/melange.rsa cgr.dev/chainguard/melange build --signing-key melange.rsa --arch=x86_64 font-liberation1.yaml
docker run --privileged --rm -v $(pwd)/packages:/work/packages -v $(pwd)/libspatialindex.yaml:/work/libspatialindex.yaml -v $(pwd)/melange.rsa:/work/melange.rsa cgr.dev/chainguard/melange build --signing-key melange.rsa --arch=x86_64 libspatialindex.yaml
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v3
Expand Down
52 changes: 52 additions & 0 deletions libspatialindex.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
package:
name: libspatialindex
version: 1.9.3
epoch: 1
description: extensible framework for robust spatial indexing methods
copyright:
- license: MIT

environment:
contents:
keyring:
- https://packages.wolfi.dev/os/wolfi-signing.rsa.pub
repositories:
- https://packages.wolfi.dev/os
packages:
- autoconf
- automake
- build-base
- busybox
- ca-certificates-bundle
- cmake
- gcc

pipeline:
- uses: fetch
with:
expected-sha256: 47d8779e32477b330e46b62fb7e62cb812caee5d8e684c35cb635a42a749f3fc
uri: https://github.com/libspatialindex/libspatialindex/releases/download/${{package.version}}/spatialindex-src-${{package.version}}.tar.gz

- runs: |
cmake -B build \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_PREFIX_PATH=/usr \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_TESTING=ON
- runs: |
cmake --build build
- runs: |
DESTDIR="${{targets.destdir}}" cmake --install build
- uses: strip

subpackages:
- name: libspatialindex-dev
pipeline:
- uses: split/dev
dependencies:
runtime:
- libspatialindex
description: libspatialindex dev

0 comments on commit 06e243d

Please sign in to comment.