forked from DaoguiZhang/Fclash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrpm.spec
32 lines (26 loc) · 1.04 KB
/
rpm.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
Name: FClash
Version: 1.4.3
Release: 1
Summary: A Clash Proxy Fronted based on Clash
License: GPL-3
Requires: gtk3 libayatana-appindicator3
Provides: libproxy_manager_plugin.so()(64bit) libclash.so()(64bit) libflutter_linux_gtk.so()(64bit) libproxy_manager_plugin.so()(64bit) libscreen_retriever_plugin.so()(64bit) libtray_manager_plugin.so()(64bit) liburl_launcher_linux_plugin.so()(64bit) libwindow_manager_plugin.so()(64bit)
%description
A Clash Proxy Fronted based on Clash.
%prep
# we have no source, so nothing here
%build
# we build FClash beforehand
# bash ${FCLASH_SRC}/build-deb.sh
%install
bsdtar -zxvf ${FCLASH_SRC}/debian/cn.kingtous.fclash.deb
tar -xvf data.tar.xz
ls -l ./opt
mkdir -p "%{buildroot}"
mv "./opt" "%{buildroot}/opt"
install -Dm0755 "${FCLASH_SRC}/debian/build-src/opt/apps/cn.kingtous.fclash/entries/applications/cn.kingtous.fclash.desktop" "%{buildroot}/usr/share/applications/cn.kingtous.fclash.desktop"
%files
/opt/*
/usr/share/applications/cn.kingtous.fclash.desktop
%changelog
# let's skip this for now