diff options
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 21 |
2 files changed, 32 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a4e0486d7e0e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,11 @@ +pkgbase = scala-scala3-symlink + pkgdesc = Replace scala with scala3 + pkgver = 1 + pkgrel = 1 + url = https://scala-lang.org + arch = any + license = Apache + depends = scala3 + conflicts = scala + +pkgname = scala-scala3-symlink diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..96f4df86b029 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,21 @@ +# Maintainer: Rubin Simons <me@rubin55.org> + +pkgname=scala-scala3-symlink +pkgver=1 +pkgrel=1 +pkgdesc='Replace scala with scala3' +arch=('any') +url='https://scala-lang.org' +license=('Apache') +depends=('scala3') +conflicts=('scala') + +package() { + install -d "$pkgdir/usr/bin" + + local _file + for _file in scala; do + ln -s scala3 "$pkgdir/usr/bin/$_file" + done +} + |