Skip to content

Commit

Permalink
fix: kotlin-native (#1934) (#1949)
Browse files Browse the repository at this point in the history
Signed-off-by: madomado <[email protected]>
(cherry picked from commit 2e174a5)

Co-authored-by: madomado <[email protected]>
  • Loading branch information
raboneko and madonuko authored Aug 16, 2024
1 parent 4514ee0 commit 262c4ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions anda/langs/kotlin/kotlin-native/kotlin-native.spec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ExclusiveArch: x86_64

License: ASL 2.0
URL: https://kotlinlang.org/docs/reference/native-overview.html
Source0: https://github.com/JetBrains/kotlin/releases/download/v%version/kotlin-native-linux-x86_64-%version.tar.gz
Source0: https://github.com/JetBrains/kotlin/releases/download/v%version/kotlin-native-prebuilt-linux-x86_64-%version.tar.gz

BuildRequires: tar
BuildRequires: sed
Expand All @@ -28,15 +28,15 @@ Kotlin compiler and native implementation of the Kotlin standard library.


%prep
tar -xf %{SOURCE0} && cd kotlin-native-linux-x86_64-%{version}
tar -xf %{SOURCE0} && cd kotlin-native-prebuilt-linux-x86_64-%{version}
sed -i "s|\(DIR *= *\).*|\1%{_bindir}|" bin/*
sed -i "s|\(KONAN_HOME *= *\).*|\1%{_datadir}/%{name}|" bin/*


%build

%install
rm -rf %{buildroot} && mkdir -p %{buildroot}%{_bindir}/ && cd kotlin-native-linux-x86_64-%{version}
rm -rf %{buildroot} && mkdir -p %{buildroot}%{_bindir}/ && cd kotlin-native-prebuilt-linux-x86_64-%{version}
install -m 0755 bin/cinterop %{buildroot}%{_bindir}/
install -m 0755 bin/generate-platform %{buildroot}%{_bindir}/
install -m 0755 bin/jsinterop %{buildroot}%{_bindir}/
Expand Down

0 comments on commit 262c4ea

Please sign in to comment.