diff --git a/dotty.yaml b/dotty.yaml new file mode 100644 index 00000000000..466991e74da --- /dev/null +++ b/dotty.yaml @@ -0,0 +1,45 @@ +package: + name: dotty + version: 3.3.1 + epoch: 0 + description: The Scala 3 compiler, also known as Dotty. + copyright: + - license: Apache-2.0 + dependencies: + provides: + - scala=${{package.full-version}} + +environment: + contents: + packages: + - ca-certificates-bundle + - build-base + - busybox + - openjdk-11-jre + - openjdk-11-default-jvm + - sbt + +pipeline: + - uses: git-checkout + with: + repository: https://github.com/lampepfl/dotty + tag: ${{package.version}} + expected-commit: 721e7c87ee95b811984b7b992728729d7094c4c4 + + - runs: | + sbt dist/pack + install -dm755 "${{targets.destdir}}"/usr/share/scala/bin + install -dm755 "${{targets.destdir}}"/usr/share/scala/lib + rm -rf build/pack/bin/*.bat + mkdir -p ${{targets.destdir}}/usr/bin + + mv dist/target/pack/bin/* ${{targets.destdir}}/usr/share/scala/bin/ + mv dist/target/pack/lib/* ${{targets.destdir}}/usr/share/scala/lib/ + ln -sf /usr/share/scala/bin/scala ${{targets.destdir}}/usr/bin/scala + ln -sf /usr/share/scala/bin/scalac ${{targets.destdir}}/usr/bin/scalac + ln -sf /usr/share/scala/bin/scaladoc ${{targets.destdir}}/usr/bin/scaladoc + +update: + enabled: true + github: + identifier: lampepfl/dotty