-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathairshipper.spec
62 lines (49 loc) · 1.89 KB
/
airshipper.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Name: airshipper
Version: 0.10.0
Release: 1%{?dist}
Summary: Airshipper launcher for Veloren.
License: GPLv3
URL: https://github.com/veloren/Airshipper
Source0: https://github.com/veloren/Airshipper/archive/v%{version}.tar.gz
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(xkbcommon)
BuildRequires: desktop-file-utils
BuildRequires: /usr/bin/cc
BuildRequires: /usr/bin/curl
%global __cargo_skip_build 0
%global debug_package %{nil}
%description
Airshipper is a launcher for the open-world, open-source multiplayer voxel RPG Veloren.
%prep
%autosetup -n Airshipper-%{version}
# Install rustup so we can compile using nightly rust
curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-toolchain none
%build
. $HOME/.cargo/env
cargo build --release --bin airshipper
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %{buildroot}/%{_bindir}
cp target/release/airshipper %{buildroot}%{_bindir}/
desktop-file-install \
--dir=%{buildroot}%{_datadir}/applications \
client/assets/net.veloren.airshipper.desktop
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/
install -D client/assets/net.veloren.airshipper.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/
install -D client/assets/net.veloren.airshipper.metainfo.xml -t %{buildroot}%{_datadir}/metainfo/
%files
%license LICENSE
%caps(cap_net_raw=pe) %{_bindir}/%{name}
%{_datadir}/applications/net.veloren.airshipper.desktop
%{_datadir}/icons/hicolor/256x256/apps/net.veloren.airshipper.png
%{_datadir}/metainfo/net.veloren.airshipper.metainfo.xml
%changelog
* Fri Dec 23 2022 Adam Blanchet
- Update to airshipper 0.10.0
* Sat Sep 17 2022 Adam Blanchet
- Update to airshipper 0.9.0
* Sat Apr 09 2022 Adam Blanchet
- Update to airshipper 0.7.0
* Fri Mar 12 2021 Adam Blanchet
- First airshipper package