mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-29 07:52:50 -05:00
Spec update - DMS CLI Source
This commit is contained in:
19
dms.spec
19
dms.spec
@@ -14,8 +14,8 @@ URL: https://github.com/AvengeMedia/DankMaterialShell
|
|||||||
VCS: {{{ git_dir_vcs }}}
|
VCS: {{{ git_dir_vcs }}}
|
||||||
Source0: {{{ git_dir_pack }}}
|
Source0: {{{ git_dir_pack }}}
|
||||||
|
|
||||||
# DMS CLI from danklinux latest release
|
# DMS CLI from danklinux latest commit
|
||||||
Source1: https://github.com/AvengeMedia/danklinux/releases/latest/download/dms-distropkg-amd64.gz
|
Source1: https://github.com/AvengeMedia/danklinux/archive/refs/heads/master.tar.gz
|
||||||
|
|
||||||
# DGOP binary from dgop latest release
|
# DGOP binary from dgop latest release
|
||||||
Source2: https://github.com/AvengeMedia/dgop/releases/latest/download/dgop-linux-amd64.gz
|
Source2: https://github.com/AvengeMedia/dgop/releases/latest/download/dgop-linux-amd64.gz
|
||||||
@@ -23,6 +23,8 @@ Source2: https://github.com/AvengeMedia/dgop/releases/latest/download/dgo
|
|||||||
BuildRequires: git-core
|
BuildRequires: git-core
|
||||||
BuildRequires: rpkg
|
BuildRequires: rpkg
|
||||||
BuildRequires: gzip
|
BuildRequires: gzip
|
||||||
|
BuildRequires: golang >= 1.24
|
||||||
|
BuildRequires: make
|
||||||
|
|
||||||
# Core requirements
|
# Core requirements
|
||||||
Requires: (quickshell or quickshell-git)
|
Requires: (quickshell or quickshell-git)
|
||||||
@@ -78,20 +80,21 @@ used standalone. This package always includes the latest stable dgop release.
|
|||||||
%prep
|
%prep
|
||||||
{{{ git_dir_setup_macro }}}
|
{{{ git_dir_setup_macro }}}
|
||||||
|
|
||||||
# Extract CLI binary
|
# Extract DankLinux source
|
||||||
gunzip -c %{SOURCE1} > %{_builddir}/dms-cli
|
tar -xzf %{SOURCE1} -C %{_builddir}
|
||||||
chmod +x %{_builddir}/dms-cli
|
|
||||||
|
|
||||||
# Extract DGOP binary
|
# Extract DGOP binary
|
||||||
gunzip -c %{SOURCE2} > %{_builddir}/dgop
|
gunzip -c %{SOURCE2} > %{_builddir}/dgop
|
||||||
chmod +x %{_builddir}/dgop
|
chmod +x %{_builddir}/dgop
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# DMS QML is source-only, binaries are prebuilt from releases
|
# Build DMS CLI from source
|
||||||
|
cd %{_builddir}/danklinux-master
|
||||||
|
make dist
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# Install dms-cli binary
|
# Install dms-cli binary (built from source)
|
||||||
install -Dm755 %{_builddir}/dms-cli %{buildroot}%{_bindir}/dms
|
install -Dm755 %{_builddir}/danklinux-master/bin/dms-linux-amd64 %{buildroot}%{_bindir}/dms
|
||||||
|
|
||||||
# Install dgop binary
|
# Install dgop binary
|
||||||
install -Dm755 %{_builddir}/dgop %{buildroot}%{_bindir}/dgop
|
install -Dm755 %{_builddir}/dgop %{buildroot}%{_bindir}/dgop
|
||||||
|
|||||||
Reference in New Issue
Block a user