Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
eepm
Commits
75cde144
Unverified
Commit
75cde144
authored
Sep 20, 2025
by
CatSema
Committed by
GitHub
Sep 20, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add spravki-bk (#480)
parent
7972284f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
82 additions
and
0 deletions
+82
-0
spravki-bk.sh
pack.d/spravki-bk.sh
+18
-0
spravki-bk.sh
play.d/spravki-bk.sh
+16
-0
spravki-bk.sh
repack.d/spravki-bk.sh
+48
-0
No files found.
pack.d/spravki-bk.sh
0 → 100644
View file @
75cde144
#!/bin/sh
TAR
=
"
$1
"
RETURNTARNAME
=
"
$2
"
.
$(
dirname
$0
)
/common.sh
# Extract the archive
erc
"
$TAR
"
||
fatal
# Find the deb file in extracted content
PKG
=
$(
find
.
-name
"*.deb"
-type
f |
head
-1
)
if
[
-z
"
$PKG
"
]
;
then
fatal
"DEB file is not found in archive"
fi
return_tar
"
$PKG
"
play.d/spravki-bk.sh
0 → 100644
View file @
75cde144
#!/bin/sh
PKGNAME
=
spravki-bk
SUPPORTEDARCHES
=
"x86_64"
VERSION
=
"
$2
"
DESCRIPTION
=
"Система подготовки отчетности «Справки БК»"
URL
=
"http://www.kremlin.ru/structure/additional/12/"
.
$(
dirname
$0
)
/common.sh
warn_version_is_not_supported
# Get download URL for Astra Linux version from kremlin.ru
PKGURL
=
$(
eget
-q
-O-
http://www.kremlin.ru/structure/additional/12/ |
grep
-B1
"для Astra Linux"
|
grep
-o
'href="[^"]*"'
|
sed
's/href="//;s/"//'
|
head
-n
2 |
tail
-n
1
)
install_pack_pkgurl
repack.d/spravki-bk.sh
0 → 100644
View file @
75cde144
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
spravki-bk
PRODUCTDIR
=
/opt/
$PRODUCT
.
$(
dirname
$0
)
/common.sh
# Fix problematic directory with CR character in name
cd
"
$BUILDROOT$PRODUCTDIR
/resources/bin/"
||
exit
1
if
[
-d
"%sbk-cleaner-path%"
$'
\r
'
]
;
then
mv
"%sbk-cleaner-path%"
$'
\r
'
"%sbk-cleaner-path%"
fi
# Replace paths with \r in SPEC file
sed
-i
's|%sbk-cleaner-path%\r|%sbk-cleaner-path%|g'
"
$SPEC
"
# Remove incorrect desktop file and install proper icon
remove_file /usr/share/applications/sbk.desktop
install_file
$PRODUCTDIR
/resources/bin/ClientApp/build/logo.svg /usr/share/icons/hicolor/scalable/apps/
$PRODUCT
.svg
# Create binary link for command line execution
add_bin_link_command
$PRODUCT
$PRODUCTDIR
/sbk
# Set correct permissions for chrome-sandbox (SUID bit required)
fix_chrome_sandbox
$PRODUCTDIR
/chrome-sandbox
# Create proper desktop file
cat
<<
EOF
| create_file /usr/share/applications/
$PRODUCT
.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=СПО "Справки БК"
Comment=Система подготовки отчетности "Справки БК"
Icon=
$PRODUCT
Exec=
$PRODUCT
Categories=Office;
Terminal=false
EOF
# Add libgdiplus dependency
add_unirequires libgdiplus.so.0
# Create symbolic link for libgdiplus.so.0 in product directory
ln
-sf
/usr/lib64/libgdiplus.so.0
$PRODUCTDIR
/resources/bin/libgdiplus.so
add_libs_requires
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment